ModelAnnotation.RegisterPropertyClass<TProperty> Method
Registers a property type that has the annotation.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
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 does not support generic types or methods.
Type Parameters
- TProperty
The Type of the property value.
Parameters
- annotationClass
Type: Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass
The ModelAnnotationClass.
- propertyName
Type: System.String
A string that contains the name of the property.
- defaultValue
Type: TProperty
An object of type TProperty that represents the default value.
Return Value
Type: Microsoft.Data.Schema.SchemaModel.ModelPropertyClass
The metadata object for the registered property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.