共用方式為


DefaultInlineConstraintResolver 建構函式

定義

多載

DefaultInlineConstraintResolver(IOptions<RouteOptions>)
已淘汰.

初始化 DefaultInlineConstraintResolver 類別的新執行個體。

DefaultInlineConstraintResolver(IOptions<RouteOptions>, IServiceProvider)

初始化 DefaultInlineConstraintResolver 類別的新執行個體。

DefaultInlineConstraintResolver(IOptions<RouteOptions>)

來源:
DefaultInlineConstraintResolver.cs
來源:
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)

來源:
DefaultInlineConstraintResolver.cs
來源:
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

適用於