Freigeben über


CachedDataAnnotationsModelMetadataProvider.CreateMetadataPrototype Methode

Definition

Gibt einen Container mit Prototypinstanzen der Metadatenklasse zurück.

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>

Der Attributtyp.

containerType
Type

Der Containertyp.

modelType
Type

Der Modelltyp.

propertyName
String

Der Eigenschaftenname.

Gibt zurück

Ein Container mit Prototypinstanzen der Metadatenklasse.

Gilt für: