Bagikan melalui


CachedAssociatedMetadataProvider<TModelMetadata>.CreateMetadata Metode

Definisi

Saat ditimpa di kelas turunan, membuat metadata model yang di-cache untuk properti .

protected override sealed System.Web.Mvc.ModelMetadata CreateMetadata(System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName);
override this.CreateMetadata : seq<Attribute> * Type * Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Protected Overrides NotOverridable Function CreateMetadata (attributes As IEnumerable(Of Attribute), containerType As Type, modelAccessor As Func(Of Object), modelType As Type, propertyName As String) As ModelMetadata

Parameter

attributes
IEnumerable<Attribute>

Atributnya.

containerType
Type

Jenis kontainer.

modelAccessor
Func<Object>

Pengaktor model.

modelType
Type

Jenis model.

propertyName
String

Nama properti.

Mengembalikan

Metadata model yang di-cache untuk properti .

Berlaku untuk