ModelStore.Annotation.RegisterAnnotationClass<TAnnotation> Method

Registers the annotation class.

Namespace:  Microsoft.Data.Schema.SchemaModel
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Protected Shared Function RegisterAnnotationClass(Of TAnnotation As ModelStore..::..Annotation) ( _
    factoryMethod As ModelStore..::..InstantiateAnnotationCallback(Of TAnnotation), _
    isSerializable As Boolean, _
    requiresControllerLock As Boolean _
) As AnnotationClass
'Usage
Dim factoryMethod As ModelStore..::..InstantiateAnnotationCallback(Of TAnnotation)
Dim isSerializable As Boolean
Dim requiresControllerLock As Boolean
Dim returnValue As AnnotationClass

returnValue = ModelStore..::..Annotation.RegisterAnnotationClass(factoryMethod, _
    isSerializable, requiresControllerLock)
protected static AnnotationClass RegisterAnnotationClass<TAnnotation>(
    ModelStore..::..InstantiateAnnotationCallback<TAnnotation> factoryMethod,
    bool isSerializable,
    bool requiresControllerLock
)
where TAnnotation : ModelStore..::..Annotation
protected:
generic<typename TAnnotation>
where TAnnotation : ModelStore..::..Annotation
static AnnotationClass^ RegisterAnnotationClass(
    ModelStore..::..InstantiateAnnotationCallback<TAnnotation>^ factoryMethod, 
    bool isSerializable, 
    bool requiresControllerLock
)
JScript does not support generic types or methods.
static member RegisterAnnotationClass : 
        factoryMethod:ModelStore..::..InstantiateAnnotationCallback<'TAnnotation> * 
        isSerializable:bool * 
        requiresControllerLock:bool -> AnnotationClass  when 'TAnnotation : ModelStore..::..Annotation

Type Parameters

  • TAnnotation
    The type of the annotation

Parameters

  • isSerializable
    Type: System.Boolean
    Specifies whether is serializable
  • requiresControllerLock
    Type: System.Boolean
    Specifies whether requires controller lock

Return Value

Type: Microsoft.Data.Schema.SchemaModel.AnnotationClass

.NET Framework Security

See Also

Reference

ModelStore.Annotation Class

ModelStore.Annotation Members

Microsoft.Data.Schema.SchemaModel Namespace