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

推荐订阅源

B
Blog RSS Feed
Jina AI
Jina AI
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 司徒正美
罗磊的独立博客
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Vercel News
Vercel News
A
About on SuperTechFans
I
InfoQ
D
DataBreaches.Net
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure 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 .