DefaultInlineConstraintResolver 构造函数

定义

重载

DefaultInlineConstraintResolver(IOptions<RouteOptions>)
已过时.

初始化 DefaultInlineConstraintResolver 类的新实例。

DefaultInlineConstraintResolver(IOptions<RouteOptions>, IServiceProvider)

初始化 DefaultInlineConstraintResolver 类的新实例。

DefaultInlineConstraintResolver(IOptions<RouteOptions>)

Source:
DefaultInlineConstraintResolver.cs
Source:
DefaultInlineConstraintResolver.cs

注意

This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.

初始化 DefaultInlineConstraintResolver 类的新实例。

public:
 DefaultInlineConstraintResolver(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Routing::RouteOptions ^> ^ routeOptions);
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions);
[System.Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")]
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions);
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
[<System.Obsolete("This constructor is obsolete. Use DefaultInlineConstraintResolver.ctor(IOptions<RouteOptions>, IServiceProvider) instead.")>]
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
Public Sub New (routeOptions As IOptions(Of RouteOptions))

参数

routeOptions
IOptions<RouteOptions>

用于 RouteOptions 包含相关约束的访问器。

属性

适用于

DefaultInlineConstraintResolver(IOptions<RouteOptions>, IServiceProvider)

Source:
DefaultInlineConstraintResolver.cs
Source:
DefaultInlineConstraintResolver.cs

初始化 DefaultInlineConstraintResolver 类的新实例。

public:
 DefaultInlineConstraintResolver(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Routing::RouteOptions ^> ^ routeOptions, IServiceProvider ^ serviceProvider);
public DefaultInlineConstraintResolver (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions, IServiceProvider serviceProvider);
new Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> * IServiceProvider -> Microsoft.AspNetCore.Routing.DefaultInlineConstraintResolver
Public Sub New (routeOptions As IOptions(Of RouteOptions), serviceProvider As IServiceProvider)

参数

routeOptions
IOptions<RouteOptions>

用于 RouteOptions 包含相关约束的访问器。

serviceProvider
IServiceProvider

要从中获取服务参数的 IServiceProvider

适用于