Share via


GraphObject.GetValue<T> Method (String)

Gets the value of the specified property.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Function GetValue(Of T) ( _
    propertyId As String _
) As T
public T GetValue<T>(
    string propertyId
)
public:
generic<typename T>
T GetValue(
    String^ propertyId
)
member GetValue : 
        propertyId:string -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of data to return.

Parameters

  • propertyId
    Type: String

    Annotation key.

Return Value

Type: T
Object associated with the property, or null.

Exceptions

Exception Condition
InvalidOperationException

Thrown if property type does not match the given generic type.

.NET Framework Security

See Also

Reference

GraphObject Class

GetValue Overload

Microsoft.VisualStudio.GraphModel Namespace