Share via


GraphObject.HasCategoryInSet Method

Definition

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

public:
 bool HasCategoryInSet(System::Collections::Generic::HashSet<Microsoft::VisualStudio::GraphModel::GraphCategory ^> ^ categorySet, Microsoft::VisualStudio::GraphModel::GraphCategoryMatchOption matchOption);
public bool HasCategoryInSet (System.Collections.Generic.HashSet<Microsoft.VisualStudio.GraphModel.GraphCategory> categorySet, Microsoft.VisualStudio.GraphModel.GraphCategoryMatchOption matchOption);
member this.HasCategoryInSet : System.Collections.Generic.HashSet<Microsoft.VisualStudio.GraphModel.GraphCategory> * Microsoft.VisualStudio.GraphModel.GraphCategoryMatchOption -> bool
Public Function HasCategoryInSet (categorySet As HashSet(Of GraphCategory), matchOption As GraphCategoryMatchOption) As Boolean

Parameters

categorySet
HashSet<GraphCategory>

The set of categories to search on

matchOption
GraphCategoryMatchOption

Whether to match the categories exaclty, or allow inherited categories to also match

Returns

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

Applies to