SetAnnotation(T) Method (IEdmAnnotatable, EdmTermName, T)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: Microsoft.Data.Edm
Assembly: Microsoft.Data.Edm (in Microsoft.Data.Edm.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub SetAnnotation(Of T As Class) ( _
annotatable As IEdmAnnotatable, _
name As EdmTermName, _
value As T _
)
'Usage
Dim annotatable As IEdmAnnotatable
Dim name As EdmTermName
Dim value As T
annotatable.SetAnnotation(name, value)
public static void SetAnnotation<T>(
this IEdmAnnotatable annotatable,
EdmTermName name,
T value
)
where T : class
[ExtensionAttribute]
public:
generic<typename T>
where T : ref class
static void SetAnnotation(
IEdmAnnotatable^ annotatable,
EdmTermName^ name,
T value
)
static member SetAnnotation :
annotatable:IEdmAnnotatable *
name:EdmTermName *
value:'T -> unit when 'T : not struct
JScript does not support generic types and methods.
Type Parameters
- T
Parameters
- annotatable
Type: Microsoft.Data.Edm..::..IEdmAnnotatable
- name
Type: Microsoft.Data.Edm.Library..::..EdmTermName
- value
Type: T
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).