GraphObject::GetValue<T> Method (GraphProperty^, Graph^, GraphCategory^)
Visual Studio 2015
Gets the value of the specified property, and also returns the category that this property value was inherited from, if any.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
public: generic<typename T> T GetValue( GraphProperty^ property, Graph^ owner, [OutAttribute] GraphCategory^% category )
Parameters
- property
-
Type:
Microsoft.VisualStudio.GraphModel::GraphProperty^
The property you want to get the value of.
- owner
-
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: TThe value of the given property.
Type Parameters
- T
The type of data to return.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if key is null. |
| InvalidOperationException | Thrown if property type does not match the given generic type. |
Show: