Aracılığıyla paylaş


AssociatedMetadataProvider.CreateMetadata Yöntem

Tanım

Türetilmiş bir sınıfta geçersiz kılındığında, model için meta veriler oluşturur.

protected:
 abstract System::Web::ModelBinding::ModelMetadata ^ CreateMetadata(System::Collections::Generic::IEnumerable<Attribute ^> ^ attributes, Type ^ containerType, Func<System::Object ^> ^ modelAccessor, Type ^ modelType, System::String ^ propertyName);
protected abstract System.Web.ModelBinding.ModelMetadata CreateMetadata (System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
abstract member CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.ModelBinding.ModelMetadata
Protected MustOverride Function CreateMetadata (attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String) As ModelMetadata

Parametreler

attributes
IEnumerable<Attribute>

Öznitelikler.

containerType
Type

Kapsayıcının türü veya null kapsayıcı yoksa.

modelAccessor
Func<Object>

Model erişimcisi.

modelType
Type

Modelin türü.

propertyName
String

Özelliğin adı veya null model bir özellik değilse.

Döndürülenler

Modelin meta verileri.

Şunlara uygulanır