GraphObject.HasCategoryInSet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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