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.

C++
public:
 bool HasValue(Microsoft::VisualStudio::GraphModel::GraphProperty ^ property);

Parameters

property
GraphProperty

Annotation key

Returns

True if annotation exists, false otherwise

Exceptions

thrown if key is null

Applies to

Visual Studio SDK 2022 およびその他のバージョン
製品 バージョン
Visual Studio SDK 2017, 2019, 2022

HasValue(String)

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

C++
public:
 bool HasValue(System::String ^ propertyId);

Parameters

propertyId
String

Property name

Returns

True if the object has a value for the given property

Applies to

Visual Studio SDK 2022 およびその他のバージョン
製品 バージョン
Visual Studio SDK 2017, 2019, 2022