Condividi tramite


GraphObject.HasCategory Method

Definition

Overloads

HasCategory(GraphCategory)

Return true if the object has the given category.

HasCategory(IEnumerable<GraphCategory>)

Return true if the object has any of the given categories.

HasCategory(String)

Return true if the object has the given category.

HasCategory(GraphCategory)

Return true if the object has the given category.

public:
 bool HasCategory(Microsoft::VisualStudio::GraphModel::GraphCategory ^ category);
public bool HasCategory (Microsoft.VisualStudio.GraphModel.GraphCategory category);
member this.HasCategory : Microsoft.VisualStudio.GraphModel.GraphCategory -> bool
Public Function HasCategory (category As GraphCategory) As Boolean

Parameters

category
GraphCategory

The category to check

Returns

Return true if the object has the given category

Applies to

HasCategory(IEnumerable<GraphCategory>)

Return true if the object has any of the given categories.

public:
 bool HasCategory(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphCategory ^> ^ categories);
public bool HasCategory (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphCategory> categories);
member this.HasCategory : seq<Microsoft.VisualStudio.GraphModel.GraphCategory> -> bool
Public Function HasCategory (categories As IEnumerable(Of GraphCategory)) As Boolean

Parameters

categories
IEnumerable<GraphCategory>

The categories to check

Returns

Return true if the object has any of the given categories

Applies to

HasCategory(String)

Return true if the object has the given category.

public:
 bool HasCategory(System::String ^ category);
public bool HasCategory (string category);
member this.HasCategory : string -> bool
Public Function HasCategory (category As String) As Boolean

Parameters

category
String

The category to remove

Returns

Return true if the object has the given category

Applies to