DefaultApiDescriptionProvider Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider)
Caution
This constructor is obsolete and will be removed in a future release.
Creates a new instance of 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)
Parameters
- optionsAccessor
- IOptions<MvcOptions>
The accessor for MvcOptions.
- constraintResolver
- IInlineConstraintResolver
The IInlineConstraintResolver used for resolving inline constraints.
- modelMetadataProvider
- IModelMetadataProvider
- Attributes
Applies to
DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper)
Caution
This constructor is obsolete and will be removed in a future release.
Creates a new instance of 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)
Parameters
- optionsAccessor
- IOptions<MvcOptions>
The accessor for MvcOptions.
- constraintResolver
- IInlineConstraintResolver
The IInlineConstraintResolver used for resolving inline constraints.
- modelMetadataProvider
- IModelMetadataProvider
- mapper
- IActionResultTypeMapper
- Attributes
Applies to
DefaultApiDescriptionProvider(IOptions<MvcOptions>, IInlineConstraintResolver, IModelMetadataProvider, IActionResultTypeMapper, IOptions<RouteOptions>)
Creates a new instance of 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))
Parameters
- optionsAccessor
- IOptions<MvcOptions>
The accessor for MvcOptions.
- constraintResolver
- IInlineConstraintResolver
The IInlineConstraintResolver used for resolving inline constraints.
- modelMetadataProvider
- IModelMetadataProvider
- mapper
- IActionResultTypeMapper
- routeOptions
- IOptions<RouteOptions>
The accessor for RouteOptions.
Remarks
The mapper
parameter is currently ignored.