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

推荐订阅源

博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
美团技术团队
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
有赞技术团队
有赞技术团队
GbyAI
GbyAI
宝玉的分享
宝玉的分享
腾讯CDC
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
月光博客
月光博客
MyScale Blog
MyScale Blog
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 司徒正美
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | 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 .