Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Clears the value of the specified property.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function ClearValue(Of T) ( _
property As GraphProperty _
) As T
public T ClearValue<T>(
GraphProperty property
)
public:
generic<typename T>
T ClearValue(
GraphProperty^ property
)
member ClearValue :
property:GraphProperty -> 'T
JScript does not support generic types or methods.
Type Parameters
- T
The type of data to return.
Parameters
property
Type: Microsoft.VisualStudio.GraphModel.GraphPropertyThe 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.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if key is null. |
| InvalidOperationException | Thrown if trying to remove an annotation that cannot be removed. |
.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.