GraphObject.HasCategoryInSet Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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: System.Collections.Generic.HashSet<GraphCategory>The set of categories to search on.
matchOption
Type: Microsoft.VisualStudio.GraphModel.GraphCategoryMatchOptionWhether 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.