ModelMetadataIdentity.ForProperty Methode

Definition

Überlädt

ForProperty(PropertyInfo, Type, Type)

Erstellt eine ModelMetadataIdentity für die bereitgestellte Eigenschaft.

ForProperty(Type, String, Type)
Veraltet.
Veraltet.

Erstellt eine ModelMetadataIdentity für die bereitgestellte Eigenschaft.

ForProperty(PropertyInfo, Type, Type)

Quelle:
ModelMetadataIdentity.cs

Erstellt eine ModelMetadataIdentity für die bereitgestellte Eigenschaft.

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

Parameter

propertyInfo
PropertyInfo

Die Eigenschaft.

modelType
Type

Der Modelltyp.

containerType
Type

Der Containertyp der Modelleigenschaft.

Gibt zurück

einen ModelMetadataIdentity

Gilt für:

ForProperty(Type, String, Type)

Quelle:
ModelMetadataIdentity.cs
Quelle:
ModelMetadataIdentity.cs
Quelle:
ModelMetadataIdentity.cs

Achtung

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

Achtung

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

Erstellt eine ModelMetadataIdentity für die bereitgestellte Eigenschaft.

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

Parameter

modelType
Type

Der Modelltyp.

name
String

Der Name der Eigenschaft.

containerType
Type

Der Containertyp der Modelleigenschaft.

Gibt zurück

einen ModelMetadataIdentity

Attribute

Gilt für: