共用方式為


DefaultApiDescriptionProvider 建構函式

定義

多載

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider)
已淘汰.

建立 DefaultApiDescriptionProvider 的新執行個體。

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper)
已淘汰.

建立 DefaultApiDescriptionProvider 的新執行個體。

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper, IOptions<RouteOptions>)

建立 DefaultApiDescriptionProvider 的新執行個體。

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider)

來源:
DefaultApiDescriptionProvider.cs
來源:
DefaultApiDescriptionProvider.cs

警告

This constructor is obsolete and will be removed in a future release.

建立 DefaultApiDescriptionProvider 的新執行個體。

public:
 DefaultApiDescriptionProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider);
public DefaultApiDescriptionProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider);
[System.Obsolete("This constructor is obsolete and will be removed in a future release.")]
public DefaultApiDescriptionProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider);
new Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
[<System.Obsolete("This constructor is obsolete and will be removed in a future release.")>]
new Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider -> Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
Public Sub New (optionsAccessor As IOptions(Of MvcOptions), constraintResolver As IInlineConstraintResolver, modelMetadataProvider As IModelMetadataProvider)

參數

optionsAccessor
IOptions<MvcOptions>

MvcOptions 存取子。

constraintResolver
IInlineConstraintResolver

IInlineConstraintResolver用於解析內嵌條件約束的 。

屬性

適用於

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper)

來源:
DefaultApiDescriptionProvider.cs
來源:
DefaultApiDescriptionProvider.cs

警告

This constructor is obsolete and will be removed in a future release.

建立 DefaultApiDescriptionProvider 的新執行個體。

public:
 DefaultApiDescriptionProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::Infrastructure::IActionResultTypeMapper ^ mapper);
public DefaultApiDescriptionProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper mapper);
[System.Obsolete("This constructor is obsolete and will be removed in a future release.")]
public DefaultApiDescriptionProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper mapper);
new Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper -> Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
[<System.Obsolete("This constructor is obsolete and will be removed in a future release.")>]
new Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper -> Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
Public Sub New (optionsAccessor As IOptions(Of MvcOptions), constraintResolver As IInlineConstraintResolver, modelMetadataProvider As IModelMetadataProvider, mapper As IActionResultTypeMapper)

參數

optionsAccessor
IOptions<MvcOptions>

MvcOptions 存取子。

constraintResolver
IInlineConstraintResolver

IInlineConstraintResolver用於解析內嵌條件約束的 。

屬性

適用於

DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper, IOptions<RouteOptions>)

來源:
DefaultApiDescriptionProvider.cs
來源:
DefaultApiDescriptionProvider.cs

建立 DefaultApiDescriptionProvider 的新執行個體。

public:
 DefaultApiDescriptionProvider(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Mvc::MvcOptions ^> ^ optionsAccessor, Microsoft::AspNetCore::Routing::IInlineConstraintResolver ^ constraintResolver, Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ modelMetadataProvider, Microsoft::AspNetCore::Mvc::Infrastructure::IActionResultTypeMapper ^ mapper, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Routing::RouteOptions ^> ^ routeOptions);
public DefaultApiDescriptionProvider (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> optionsAccessor, Microsoft.AspNetCore.Routing.IInlineConstraintResolver constraintResolver, Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider modelMetadataProvider, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper mapper, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> routeOptions);
new Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> * Microsoft.AspNetCore.Routing.IInlineConstraintResolver * Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultTypeMapper * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Routing.RouteOptions> -> Microsoft.AspNetCore.Mvc.ApiExplorer.DefaultApiDescriptionProvider
Public Sub New (optionsAccessor As IOptions(Of MvcOptions), constraintResolver As IInlineConstraintResolver, modelMetadataProvider As IModelMetadataProvider, mapper As IActionResultTypeMapper, routeOptions As IOptions(Of RouteOptions))

參數

optionsAccessor
IOptions<MvcOptions>

MvcOptions 存取子。

constraintResolver
IInlineConstraintResolver

IInlineConstraintResolver用於解析內嵌條件約束的 。

routeOptions
IOptions<RouteOptions>

RouteOptions 存取子。

備註

mapper參數目前會被忽略。

適用於