ModelMetadataIdentity.ForParameter Method
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
ForParameter(ParameterInfo) |
Creates a ModelMetadataIdentity for the provided parameter. |
ForParameter(ParameterInfo, Type) |
Creates a ModelMetadataIdentity for the provided parameter with the specified model type. |
ForParameter(ParameterInfo)
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
Creates a ModelMetadataIdentity for the provided parameter.
public:
static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForParameter(System::Reflection::ParameterInfo ^ parameter);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForParameter (System.Reflection.ParameterInfo parameter);
static member ForParameter : System.Reflection.ParameterInfo -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForParameter (parameter As ParameterInfo) As ModelMetadataIdentity
Parameters
- parameter
- ParameterInfo
The ParameterInfo.
Returns
Applies to
ForParameter(ParameterInfo, Type)
- Source:
- ModelMetadataIdentity.cs
- Source:
- ModelMetadataIdentity.cs
Creates a ModelMetadataIdentity for the provided parameter with the specified model type.
public:
static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForParameter(System::Reflection::ParameterInfo ^ parameter, Type ^ modelType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForParameter (System.Reflection.ParameterInfo parameter, Type modelType);
static member ForParameter : System.Reflection.ParameterInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForParameter (parameter As ParameterInfo, modelType As Type) As ModelMetadataIdentity
Parameters
- parameter
- ParameterInfo
The ParameterInfo.
- modelType
- Type
The model type.