GraphObject.GetValue<T> Method (GraphProperty, Graph)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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) ( _
    property As GraphProperty, _
    owner As Graph _
) As T
public T GetValue<T>(
    GraphProperty property,
    Graph owner
)
public:
generic<typename T>
T GetValue(
    GraphProperty^ property, 
    Graph^ owner
)
member GetValue : 
        property:GraphProperty * 
        owner:Graph -> 'T 
JScript does not support generic types or methods.

Type Parameters

  • T
    The type of data to return.

Parameters

Return Value

Type: T
The value of the given property.

Exceptions

Exception Condition
ArgumentNullException

Thrown if key is null.

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