Dela via


ModelMetadataIdentity.ForParameter Method

Definition

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

A ModelMetadataIdentity.

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.

Returns

A ModelMetadataIdentity.

Applies to