Freigeben über


GraphObject.HasCategoryInSet-Methode

Bestimmt, ob der angegebene Satz von Kategorien auf dieses Objekt angewendet.

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

Parameter

  • categorySet
    Typ: HashSet<GraphCategory>

    Der Satz an zu suchen von Kategorien.

Rückgabewert

Typ: Boolean
True, wenn dieses Objekt eine oder mehrere der angegebenen Kategorien hat; andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

GraphObject Klasse

Microsoft.VisualStudio.GraphModel-Namespace