GraphObject::ClearValue<T> Method (GraphProperty^)

 

Clears the value of the specified property.

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

public:
generic<typename T>
T ClearValue(
	GraphProperty^ property
)

Parameters

property
Type: Microsoft.VisualStudio.GraphModel::GraphProperty^

The property whose value you want to clear.

Return Value

Type: T

The 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.

Return to top
Show: