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.
matchOption
Type: Microsoft.VisualStudio.GraphModel.GraphCategoryMatchOptionWhether to match the categories exactly or allow for inherited categories to also match.
Return Value
Type: 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.