Bagikan melalui


CachedDataAnnotationsModelMetadataProvider.CreateMetadataPrototype Metode

Definisi

Mengembalikan instans prototipe kontainer dari kelas metadata.

protected override System.Web.Mvc.CachedDataAnnotationsModelMetadata CreateMetadataPrototype(System.Collections.Generic.IEnumerable<Attribute> attributes, Type containerType, Type modelType, string propertyName);
override this.CreateMetadataPrototype : seq<Attribute> * Type * Type * string -> System.Web.Mvc.CachedDataAnnotationsModelMetadata
Protected Overrides Function CreateMetadataPrototype (attributes As IEnumerable(Of Attribute), containerType As Type, modelType As Type, propertyName As String) As CachedDataAnnotationsModelMetadata

Parameter

attributes
IEnumerable<Attribute>

Jenis atribut.

containerType
Type

Jenis kontainer.

modelType
Type

Jenis model.

propertyName
String

Nama properti.

Mengembalikan

instans prototipe kontainer dari kelas metadata.

Berlaku untuk