GraphObject::ClearValue<T> Method (GraphProperty^)
Visual Studio 2015
Clears the value of the specified property.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- property
-
Type:
Microsoft.VisualStudio.GraphModel::GraphProperty^
The property whose value you want to clear.
Return Value
Type: TThe annotation value that was removed, or default value if key could not be found.
Type Parameters
- T
The type of data to return.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if key is null. |
| InvalidOperationException | Thrown if trying to remove an annotation that cannot be removed. |
Show: