惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
博客园_首页
H
Help Net Security
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
B
Blog
I
InfoQ
SecWiki News
SecWiki News
T
Tailwind CSS Blog
Spread Privacy
Spread Privacy
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Vulnerabilities – Threatpost
N
Netflix TechBlog - Medium
P
Palo Alto Networks Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Vercel News
Vercel News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
K
Kaspersky official blog
M
MIT News - Artificial intelligence
S
Schneier on Security
T
Threat Research - Cisco Blogs
F
Fortinet All Blogs
Cyberwarzone
Cyberwarzone
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
MyScale Blog
MyScale Blog
The Cloudflare Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
G
GRAHAM CLULEY
IT之家
IT之家
Y
Y Combinator Blog
The Last Watchdog
The Last Watchdog
腾讯CDC
Google DeepMind News
Google DeepMind News
V
V2EX
S
Securelist
TaoSecurity Blog
TaoSecurity Blog
B
Blog RSS Feed
S
SegmentFault 最新的问题
博客园 - 叶小钗
P
Proofpoint News Feed
云风的 BLOG
云风的 BLOG
Project Zero
Project Zero
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
F
Full Disclosure

博客园 - 如是如是

将博客搬至CSDN 钱钟书夫人杨绛:《一百岁感言》 DOM无关事件 用到了反射,还不错。可以取到动态创建类的值 JounceTabRegion Jounce Blendable RestShart Post 方式传递poco给Web api Using ASP.NET Web API with ASP.NET Web Forms How to Migrate from WCF Web API to ASP.NET Web API ASP.NET Web API MVC-REST-SilverLight 之 架构 MVC-REST-SilverLight 之 RestExample.Model.Silverlight\Customer.cs - 如是如是 MVC-REST-SilverLight 之MainPage.xaml.cs MVC-REST-SilverLight 之 ViewModels\MainViewModel.cs - 如是如是 MVC-REST-SilverLight 之Api\CustomerApi.cs - 如是如是 - 博客园 MVC-REST-SilverLight 之 Global.asax.cs MVC-REST-SilverLight 之 HttpConfiguration MEF Export 和 Import 委托 设计模式-访问者
MVC-REST-SilverLight 之 MapServiceRoute
如是如是 · 2012-02-21 · via 博客园 - 如是如是
 

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Namespace:  System.Web.Routing
Assembly:  Microsoft.ApplicationServer.HttpEnhancements (in Microsoft.ApplicationServer.HttpEnhancements.dll)

Syntax

Visual Basic (Declaration)

<ExtensionAttribute> _

Public Shared Sub MapServiceRoute(Of TService) ( _

    routes As RouteCollection, _

    routePrefix As String, _

    configuration As HttpConfiguration, _

    constraints As Object, _

    useMethodPrefixForHttpMethod As Boolean _

)

Visual Basic (Usage)

Dim routes As RouteCollection

Dim routePrefix As String

Dim configuration As HttpConfiguration

Dim constraints As Object

Dim useMethodPrefixForHttpMethod As Boolean

routes.MapServiceRoute(routePrefix, _

    configuration, constraints, useMethodPrefixForHttpMethod)

C#

public static void MapServiceRoute<TService>(

    this RouteCollection routes,

    string routePrefix,

    HttpConfiguration configuration,

    Object constraints,

    bool useMethodPrefixForHttpMethod

)

Visual C++

[ExtensionAttribute]

public:

generic<typename TService>

static void MapServiceRoute(

    RouteCollection^ routes,

    String^ routePrefix,

    HttpConfiguration^ configuration,

    Object^ constraints,

    bool useMethodPrefixForHttpMethod

)

F#

static member MapServiceRoute :

routes:RouteCollection *

routePrefix:string *

configuration:HttpConfiguration *

constraints:Object *

useMethodPrefixForHttpMethod:bool -> unit

JScript

JScript does not support generic types and methods.

Type Parameters

TService

Parameters

routes

Type: System.Web.Routing..::..RouteCollection

routePrefix

Type: System..::..String

configuration

Type: Microsoft.ApplicationServer.Http..::..HttpConfiguration

constraints

Type: System..::..Object

useMethodPrefixForHttpMethod

Type: System..::..Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type RouteCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .