ModelMetadataProviderExtensions.GetModelExplorerForType(IModelMetadataProvider, Type, Object) ModelMetadataProviderExtensions.GetModelExplorerForType(IModelMetadataProvider, Type, Object) ModelMetadataProviderExtensions.GetModelExplorerForType(IModelMetadataProvider, Type, Object) ModelMetadataProviderExtensions.GetModelExplorerForType(IModelMetadataProvider, Type, Object) Method

Definition

Gets a ModelExplorer for the provided modelType and model.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetModelExplorerForType(Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider ^ provider, Type ^ modelType, System::Object ^ model);
public static Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetModelExplorerForType (this Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider provider, Type modelType, object model);
static member GetModelExplorerForType : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider * Type * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
<Extension()>
Public Function GetModelExplorerForType (provider As IModelMetadataProvider, modelType As Type, model As Object) As ModelExplorer

Parameters

modelType
Type Type Type Type

The declared Type of the model object.

model
Object Object Object Object

The model object.

Returns

Applies to