Share via


GraphObject.HasCategoryInSet Method

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

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

Syntax

'Declaration
Public Function HasCategoryInSet ( _
    categorySet As HashSet(Of GraphCategory), _
    matchOption As GraphCategoryMatchOption _
) As Boolean
public bool HasCategoryInSet(
    HashSet<GraphCategory> categorySet,
    GraphCategoryMatchOption matchOption
)
public:
bool HasCategoryInSet(
    HashSet<GraphCategory^>^ categorySet, 
    GraphCategoryMatchOption matchOption
)
member HasCategoryInSet : 
        categorySet:HashSet<GraphCategory> * 
        matchOption:GraphCategoryMatchOption -> bool
public function HasCategoryInSet(
    categorySet : HashSet<GraphCategory>, 
    matchOption : GraphCategoryMatchOption
) : boolean

Parameters

  • categorySet
    Type: HashSet<GraphCategory>

    The set of categories to search on.

Return Value

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

.NET Framework Security

See Also

Reference

GraphObject Class

Microsoft.VisualStudio.GraphModel Namespace