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
- factoryMethod
Type: Microsoft.Data.Schema.SchemaModel.InstantiateElementCallback<TElement>
- identifierGroup
Type: Microsoft.Data.Schema.SchemaModel.ModelIdentifierGroup
Return Value
Type: Microsoft.Data.Schema.SchemaModel.ModelElementClass
.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.