SetAnnotation Method (IEdmAnnotatable, String, String, IEdmValue)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets an annotation on the annotatable element.
Namespace: Microsoft.Data.Edm
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetAnnotation ( _
annotatable As IEdmAnnotatable, _
namespaceName As String, _
localName As String, _
value As IEdmValue _
)
'Usage
Dim annotatable As IEdmAnnotatable
Dim namespaceName As String
Dim localName As String
Dim value As IEdmValue
annotatable.SetAnnotation(namespaceName, _
localName, value)
public static void SetAnnotation(
this IEdmAnnotatable annotatable,
string namespaceName,
string localName,
IEdmValue value
)
[ExtensionAttribute]
public:
static void SetAnnotation(
IEdmAnnotatable^ annotatable,
String^ namespaceName,
String^ localName,
IEdmValue^ value
)
static member SetAnnotation :
annotatable:IEdmAnnotatable *
namespaceName:string *
localName:string *
value:IEdmValue -> unit
public static function SetAnnotation(
annotatable : IEdmAnnotatable,
namespaceName : String,
localName : String,
value : IEdmValue
)
Parameters
- annotatable
Type: Microsoft.Data.Edm..::..IEdmAnnotatable
Reference to the calling object.
- namespaceName
Type: System..::..String
Namespace of the annotation.
- localName
Type: System..::..String
Name of the annotation inside the namespace.
- value
Type: Microsoft.Data.Edm.Values..::..IEdmValue
Contents of the new annotation.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IEdmAnnotatable. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).
Remarks
Strongly-typed simple wrappers.