다음을 통해 공유


AttributeRoutingConvention 생성자

정의

오버로드

AttributeRoutingConvention(String, IEnumerable<HttpControllerDescriptor>)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

AttributeRoutingConvention(String, HttpConfiguration)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

AttributeRoutingConvention(String, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

AttributeRoutingConvention(String, IServiceProvider, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

AttributeRoutingConvention(String, HttpConfiguration, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

AttributeRoutingConvention(String, IEnumerable<HttpControllerDescriptor>)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

public AttributeRoutingConvention (string routeName, System.Collections.Generic.IEnumerable<System.Web.Http.Controllers.HttpControllerDescriptor> controllers);
new Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention : string * seq<System.Web.Http.Controllers.HttpControllerDescriptor> -> Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention
Public Sub New (routeName As String, controllers As IEnumerable(Of HttpControllerDescriptor))

매개 변수

routeName
String

경로의 이름입니다.

controllers
IEnumerable<System.Web.Http.Controllers.HttpControllerDescriptor>

일치를 위해 검색할 컨트롤러의 컬렉션입니다.

설명

이 서명은 AspNet 관련 형식을 사용하며 단위 테스트에만 사용됩니다.

적용 대상

AttributeRoutingConvention(String, HttpConfiguration)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

public AttributeRoutingConvention (string routeName, System.Web.Http.HttpConfiguration configuration);
new Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention : string * System.Web.Http.HttpConfiguration -> Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention
Public Sub New (routeName As String, configuration As HttpConfiguration)

매개 변수

routeName
String

경로의 이름입니다.

configuration
System.Web.Http.HttpConfiguration

System.Web.Http.HttpConfiguration 일치 항목을 찾을 모든 컨트롤러를 구성하는 데 사용할 입니다.

설명

이 서명은 AspNet 관련 형식을 사용합니다.

적용 대상

AttributeRoutingConvention(String, IEnumerable<HttpControllerDescriptor>, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

public AttributeRoutingConvention (string routeName, System.Collections.Generic.IEnumerable<System.Web.Http.Controllers.HttpControllerDescriptor> controllers, Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler pathTemplateHandler);
new Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention : string * seq<System.Web.Http.Controllers.HttpControllerDescriptor> * Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler -> Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention
Public Sub New (routeName As String, controllers As IEnumerable(Of HttpControllerDescriptor), pathTemplateHandler As IODataPathTemplateHandler)

매개 변수

routeName
String

경로의 이름입니다.

controllers
IEnumerable<System.Web.Http.Controllers.HttpControllerDescriptor>

일치를 위해 검색할 컨트롤러의 컬렉션입니다.

pathTemplateHandler
IODataPathTemplateHandler

경로 템플릿을 구문 분석하는 데 사용할 경로 템플릿 처리기입니다.

설명

이 서명은 AspNet 관련 형식을 사용하며 단위 테스트에만 사용됩니다.

적용 대상

AttributeRoutingConvention(String, IServiceProvider, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

public AttributeRoutingConvention (string routeName, IServiceProvider serviceProvider, Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler pathTemplateHandler = default);
new Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention : string * IServiceProvider * Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler -> Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention
Public Sub New (routeName As String, serviceProvider As IServiceProvider, Optional pathTemplateHandler As IODataPathTemplateHandler = Nothing)

매개 변수

routeName
String

경로의 이름입니다.

serviceProvider
IServiceProvider

IServiceProvider 일치 항목을 찾을 모든 컨트롤러를 구성하는 데 사용할 입니다.

pathTemplateHandler
IODataPathTemplateHandler

경로 템플릿을 구문 분석하는 데 사용할 경로 템플릿 처리기입니다.

설명

이 함수는 AspNetCore 관련 형식을 사용하지 않지만 AspNet 및 AspnetCore에서 어셈블리 확인이 수행되는 방식 때문입니다.

적용 대상

AttributeRoutingConvention(String, HttpConfiguration, IODataPathTemplateHandler)

AttributeRoutingConvention 클래스의 새 인스턴스를 초기화합니다.

public AttributeRoutingConvention (string routeName, System.Web.Http.HttpConfiguration configuration, Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler pathTemplateHandler);
new Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention : string * System.Web.Http.HttpConfiguration * Microsoft.AspNet.OData.Routing.IODataPathTemplateHandler -> Microsoft.AspNet.OData.Routing.Conventions.AttributeRoutingConvention
Public Sub New (routeName As String, configuration As HttpConfiguration, pathTemplateHandler As IODataPathTemplateHandler)

매개 변수

routeName
String

경로의 이름입니다.

configuration
System.Web.Http.HttpConfiguration

System.Web.Http.HttpConfiguration 일치 항목을 찾을 모든 컨트롤러를 구성하는 데 사용할 입니다.

pathTemplateHandler
IODataPathTemplateHandler

경로 템플릿을 구문 분석하는 데 사용할 경로 템플릿 처리기입니다.

설명

이 서명은 AspNet 관련 형식을 사용합니다.

적용 대상