ModelAnnotation.RegisterPropertyClass<TProperty> (Método)

Registra un tipo de propiedad que tiene la anotación.

Espacio de nombres:  Microsoft.Data.Schema.SchemaModel
Ensamblado:  Microsoft.Data.Schema (en Microsoft.Data.Schema.dll)

Sintaxis

'Declaración
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 no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • TProperty
    Clase Type del valor de la propiedad.

Parámetros

  • propertyName
    Tipo: System.String
    string que contiene el nombre de la propiedad.
  • defaultValue
    Tipo: TProperty
    Objeto de tipo TProperty que representa el valor predeterminado.

Valor devuelto

Tipo: Microsoft.Data.Schema.SchemaModel.ModelPropertyClass
Objeto de metadatos de la propiedad registrada.

Seguridad de .NET Framework

Vea también

Referencia

ModelAnnotation Clase

Microsoft.Data.Schema.SchemaModel (Espacio de nombres)

ModelAnnotationClass