ModelStore.CreateNamedAnnotation Method (Type, 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 ( _
annotationType As Type, _
identifier As ModelIdentifier _
) As IModelAnnotation
public IModelAnnotation CreateNamedAnnotation(
Type annotationType,
ModelIdentifier identifier
)
public:
IModelAnnotation^ CreateNamedAnnotation(
Type^ annotationType,
ModelIdentifier^ identifier
)
member CreateNamedAnnotation :
annotationType:Type *
identifier:ModelIdentifier -> IModelAnnotation
public function CreateNamedAnnotation(
annotationType : Type,
identifier : ModelIdentifier
) : IModelAnnotation
Parameters
- annotationType
Type: System.Type
A Type from which this is derived
- 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 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