GraphObject::HasCategoryInSet Method (HashSet<GraphCategory^>^, GraphCategoryMatchOption)

 

Determines whether the given set of categories applies to this object.

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

public:
bool HasCategoryInSet(
	HashSet<GraphCategory^>^ categorySet,
	GraphCategoryMatchOption matchOption
)

Parameters

categorySet
Type: System.Collections.Generic::HashSet<GraphCategory^>^

The set of categories to search on.

matchOption
Type: Microsoft.VisualStudio.GraphModel::GraphCategoryMatchOption

Whether to match the categories exactly or allow for inherited categories to also match.

Return Value

Type: System::Boolean

True if this object has one or more of the given categories; false otherwise.

Return to top
Show: