GraphObject.HasCategory Method (IEnumerable<GraphCategory>)

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

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

Syntax

'Declaration
Public Function HasCategory ( _
    categories As IEnumerable(Of GraphCategory) _
) As Boolean
public bool HasCategory(
    IEnumerable<GraphCategory> categories
)
public:
bool HasCategory(
    IEnumerable<GraphCategory^>^ categories
)
member HasCategory : 
        categories:IEnumerable<GraphCategory> -> bool
public function HasCategory(
    categories : IEnumerable<GraphCategory>
) : boolean

Parameters

  • categories
    Type: IEnumerable<GraphCategory>

    The categories to check.

Return Value

Type: Boolean
Returns true if the object has any of the given categories.

.NET Framework Security

See Also

Reference

GraphObject Class

HasCategory Overload

Microsoft.VisualStudio.GraphModel Namespace