ModelMetadata.GetMetadataForProperties(Type) Metodo

Definizione

Fornisce metadati che descrivono le proprietà di un Typeoggetto .

C#
public virtual System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata> GetMetadataForProperties (Type modelType);

Parametri

modelType
Type

Oggetto Type.

Restituisce

Set di ModelMetadata istanze che descrivono le proprietà di Type.

Implementazioni

Si applica a

Prodotto Versioni
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0