ModelStore.CreateNamedAnnotation<TAnnotation> Method (ModelIdentifier)
Creates a named ModelAnnotation object by using the provided model identifier.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function CreateNamedAnnotation(Of TAnnotation As IModelAnnotation) ( _
identifier As ModelIdentifier _
) As TAnnotation
public TAnnotation CreateNamedAnnotation<TAnnotation>(
ModelIdentifier identifier
)
where TAnnotation : IModelAnnotation
public:
generic<typename TAnnotation>
where TAnnotation : IModelAnnotation
TAnnotation CreateNamedAnnotation(
ModelIdentifier^ identifier
)
member CreateNamedAnnotation :
identifier:ModelIdentifier -> 'TAnnotation when 'TAnnotation : IModelAnnotation
JScript does not support generic types or methods.
Type Parameters
- TAnnotation
A Type that is derived from IModelAnnotation.
Parameters
- identifier
Type: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
A ModelIdentifier that contains the name of the annotation.
Return Value
Type: TAnnotation
A named model annotation.
.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.
See Also
Reference
CreateNamedAnnotation Overload