Condividi tramite


GraphObject.HasValue Method

Definition

Overloads

HasValue(GraphProperty)

Return true if the specified annotation exists.

HasValue(String)

Find out if the object has a value for the specified property.

HasValue(GraphProperty)

Return true if the specified annotation exists.

public:
 bool HasValue(Microsoft::VisualStudio::GraphModel::GraphProperty ^ property);
public bool HasValue (Microsoft.VisualStudio.GraphModel.GraphProperty property);
member this.HasValue : Microsoft.VisualStudio.GraphModel.GraphProperty -> bool
Public Function HasValue (property As GraphProperty) As Boolean

Parameters

property
GraphProperty

Annotation key

Returns

True if annotation exists, false otherwise

Exceptions

thrown if key is null

Applies to

HasValue(String)

Find out if the object has a value for the specified property.

public:
 bool HasValue(System::String ^ propertyId);
public bool HasValue (string propertyId);
member this.HasValue : string -> bool
Public Function HasValue (propertyId As String) As Boolean

Parameters

propertyId
String

Property name

Returns

True if the object has a value for the given property

Applies to