GraphObject.GetValue<T> Method (GraphProperty, Graph, GraphCategory%)
Gets the value of the specified property, and also return the category that this property value was inherited from if any.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetValue(Of T) ( _
property As GraphProperty, _
schemaForInheritedProperties As Graph, _
<OutAttribute> ByRef category As GraphCategory _
) As T
public T GetValue<T>(
GraphProperty property,
Graph schemaForInheritedProperties,
out GraphCategory category
)
public:
generic<typename T>
T GetValue(
GraphProperty^ property,
Graph^ schemaForInheritedProperties,
[OutAttribute] GraphCategory^% category
)
member GetValue :
property:GraphProperty *
schemaForInheritedProperties:Graph *
category:GraphCategory byref -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
the type of data to return
Parameters
- property
Type: Microsoft.VisualStudio.GraphModel.GraphProperty
the property you want to get the value of
- schemaForInheritedProperties
Type: Microsoft.VisualStudio.GraphModel.Graph
The graph (or GraphSchema) from which to retrieve additional metadata about this object
- category
Type: Microsoft.VisualStudio.GraphModel.GraphCategory%
The category that the property value was inherited from or null if it was not inherited
Return Value
Type: T
value of the given property
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.