Share via


ModelElement.RegisterElementClass<TElement> Method

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

Syntax

'Declaration
Protected Shared Function RegisterElementClass(Of TElement As ModelElement) ( _
    factoryMethod As InstantiateElementCallback(Of TElement), _
    identifierGroup As ModelIdentifierGroup _
) As ModelElementClass
protected static ModelElementClass RegisterElementClass<TElement>(
    InstantiateElementCallback<TElement> factoryMethod,
    ModelIdentifierGroup identifierGroup
)
where TElement : ModelElement
protected:
generic<typename TElement>
where TElement : ModelElement
static ModelElementClass^ RegisterElementClass(
    InstantiateElementCallback<TElement>^ factoryMethod, 
    ModelIdentifierGroup^ identifierGroup
)
static member RegisterElementClass : 
        factoryMethod:InstantiateElementCallback<'TElement> * 
        identifierGroup:ModelIdentifierGroup -> ModelElementClass  when 'TElement : ModelElement
JScript does not support generic types or methods.

Type Parameters

  • TElement

Parameters

Return Value

Type: Microsoft.Data.Schema.SchemaModel.ModelElementClass

.NET Framework Security

See Also

Reference

ModelElement Class

Microsoft.Data.Schema.SchemaModel Namespace