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

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

博客园 - 如是如是

将博客搬至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 .