Aracılığıyla paylaş


ModelAnnotation.RegisterPropertyClass<TProperty> Yöntem

Annotation kýsmý bir özellik türünü kaydeder.

Ad alanı:  Microsoft.Data.Schema.SchemaModel
Derleme:  Microsoft.Data.Schema (Microsoft.Data.Schema.dll içinde)

Sözdizimi

'Bildirim
Protected Shared Function RegisterPropertyClass(Of TProperty) ( _
    annotationClass As ModelAnnotationClass, _
    propertyName As String, _
    defaultValue As TProperty _
) As ModelPropertyClass
protected static ModelPropertyClass RegisterPropertyClass<TProperty>(
    ModelAnnotationClass annotationClass,
    string propertyName,
    TProperty defaultValue
)
protected:
generic<typename TProperty>
static ModelPropertyClass^ RegisterPropertyClass(
    ModelAnnotationClass^ annotationClass, 
    String^ propertyName, 
    TProperty defaultValue
)
static member RegisterPropertyClass : 
        annotationClass:ModelAnnotationClass * 
        propertyName:string * 
        defaultValue:'TProperty -> ModelPropertyClass 
JScript genel türleri veya yöntemleri desteklemez.

Tür Parametreleri

  • TProperty
    Type Özelliği değeri.

Parametreler

  • propertyName
    Tür: System.String
    A string içeren adı özelliği.
  • defaultValue
    Tür: TProperty
    Bir nesne türü TProperty temsil eden varsayılan değeri.

Dönüş Değeri

Tür: Microsoft.Data.Schema.SchemaModel.ModelPropertyClass
Kayıtlı özelliği için meta veri nesnesi.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ModelAnnotation Sınıf

Microsoft.Data.Schema.SchemaModel Ad Alanı

ModelAnnotationClass