Compartilhar via


GraphObject.ClearValue Method

Definition

Overloads

ClearValue(GraphProperty)

Removes the value of the specified property

ClearValue<T>(GraphProperty)

Clear the value of the specified property.

ClearValue(GraphProperty)

Removes the value of the specified property

public:
 System::Object ^ ClearValue(Microsoft::VisualStudio::GraphModel::GraphProperty ^ graphProperty);
public object ClearValue (Microsoft.VisualStudio.GraphModel.GraphProperty graphProperty);
member this.ClearValue : Microsoft.VisualStudio.GraphModel.GraphProperty -> obj
Public Function ClearValue (graphProperty As GraphProperty) As Object

Parameters

graphProperty
GraphProperty

The property you want to clear

Returns

The annotation value that was removed, or null

Applies to

ClearValue<T>(GraphProperty)

Clear the value of the specified property.

public:
generic <typename T>
 T ClearValue(Microsoft::VisualStudio::GraphModel::GraphProperty ^ property);
public T ClearValue<T> (Microsoft.VisualStudio.GraphModel.GraphProperty property);
member this.ClearValue : Microsoft.VisualStudio.GraphModel.GraphProperty -> 'T
Public Function ClearValue(Of T) (property As GraphProperty) As T

Type Parameters

T

The type of data to return

Parameters

property
GraphProperty

The property whose value you want to clear

Returns

T

The annotation value that was removed, or default value if key could not be found

Exceptions

thrown if key is null

throws if trying to remove an annotation which can not be removed

Applies to