Share via


TryGetAnnotation Method

Namespace:  Microsoft.Data.Tools.Model.Util
Assembly:  Microsoft.Data.Tools.Model (in Microsoft.Data.Tools.Model.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function TryGetAnnotation ( _
    node As IModelObject, _
    typeKey As Type, _
    <OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim node As IModelObject
Dim typeKey As Type
Dim value As Object
Dim returnValue As Boolean

returnValue = node.TryGetAnnotation(typeKey, _
    value)
public static bool TryGetAnnotation(
    this IModelObject node,
    Type typeKey,
    out Object value
)
[ExtensionAttribute]
public:
static bool TryGetAnnotation(
    IModelObject^ node, 
    Type^ typeKey, 
    [OutAttribute] Object^% value
)
static member TryGetAnnotation : 
        node:IModelObject * 
        typeKey:Type * 
        value:Object byref -> bool 
public static function TryGetAnnotation(
    node : IModelObject, 
    typeKey : Type, 
    value : Object
) : boolean

Parameters

Return Value

Type: System..::..Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IModelObject. 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).

See Also

Reference

ModelExtensions Class

Microsoft.Data.Tools.Model.Util Namespace