Sdílet prostřednictvím


ModelMetadataIdentity.ForProperty Metoda

Definice

Přetížení

ForProperty(PropertyInfo, Type, Type)

Vytvoří pro zadanou ModelMetadataIdentity vlastnost .

ForProperty(Type, String, Type)
Zastaralé.
Zastaralé.

Vytvoří pro zadanou ModelMetadataIdentity vlastnost .

ForProperty(PropertyInfo, Type, Type)

Zdroj:
ModelMetadataIdentity.cs

Vytvoří pro zadanou ModelMetadataIdentity vlastnost .

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForProperty(System::Reflection::PropertyInfo ^ propertyInfo, Type ^ modelType, Type ^ containerType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (System.Reflection.PropertyInfo propertyInfo, Type modelType, Type containerType);
static member ForProperty : System.Reflection.PropertyInfo * Type * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForProperty (propertyInfo As PropertyInfo, modelType As Type, containerType As Type) As ModelMetadataIdentity

Parametry

propertyInfo
PropertyInfo

Vlastnost.

modelType
Type

Typ modelu.

containerType
Type

Typ kontejneru vlastnosti modelu.

Návraty

Úloha ModelMetadataIdentity.

Platí pro

ForProperty(Type, String, Type)

Zdroj:
ModelMetadataIdentity.cs
Zdroj:
ModelMetadataIdentity.cs
Zdroj:
ModelMetadataIdentity.cs

Upozornění

This API is obsolete and may be removed in a future release.

Upozornění

This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.

Vytvoří pro zadanou ModelMetadataIdentity vlastnost .

public:
 static Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity ForProperty(Type ^ modelType, System::String ^ name, Type ^ containerType);
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
[System.Obsolete("This API is obsolete and may be removed in a future release.")]
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
[System.Obsolete("This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.")]
public static Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity ForProperty (Type modelType, string name, Type containerType);
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
[<System.Obsolete("This API is obsolete and may be removed in a future release.")>]
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
[<System.Obsolete("This API is obsolete and may be removed in a future release. Please use the overload that takes a PropertyInfo object.")>]
static member ForProperty : Type * string * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity
Public Shared Function ForProperty (modelType As Type, name As String, containerType As Type) As ModelMetadataIdentity

Parametry

modelType
Type

Typ modelu.

name
String

Název vlastnosti

containerType
Type

Typ kontejneru vlastnosti modelu.

Návraty

Úloha ModelMetadataIdentity.

Atributy

Platí pro