ModelStore.CreateNamedAnnotation Method (ModelAnnotationClass, ModelIdentifier)
Creates a named ModelAnnotation object by using the provided annotation metadata object and identifier.
Namespace: Microsoft.Data.Schema.SchemaModel
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public Function CreateNamedAnnotation ( _
annotationClass As ModelAnnotationClass, _
identifier As ModelIdentifier _
) As IModelAnnotation
public IModelAnnotation CreateNamedAnnotation(
ModelAnnotationClass annotationClass,
ModelIdentifier identifier
)
public:
IModelAnnotation^ CreateNamedAnnotation(
ModelAnnotationClass^ annotationClass,
ModelIdentifier^ identifier
)
member CreateNamedAnnotation :
annotationClass:ModelAnnotationClass *
identifier:ModelIdentifier -> IModelAnnotation
public function CreateNamedAnnotation(
annotationClass : ModelAnnotationClass,
identifier : ModelIdentifier
) : IModelAnnotation
Parameters
- annotationClass
Type: Microsoft.Data.Schema.SchemaModel.ModelAnnotationClass
A ModelAnnotationClass metadata object.
- identifier
Type: Microsoft.Data.Schema.SchemaModel.ModelIdentifier
A ModelIdentifier that contains the name of the annotation.
Return Value
Type: Microsoft.Data.Schema.SchemaModel.IModelAnnotation
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