Share via


GraphSchema.FindCategoryByLabel Method

Gets the first GraphCategory with the specified label from this schema or any subschema.

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

Syntax

'Declaration
Public Function FindCategoryByLabel ( _
    label As String _
) As GraphCategory
public GraphCategory FindCategoryByLabel(
    string label
)
public:
GraphCategory^ FindCategoryByLabel(
    String^ label
)
member FindCategoryByLabel : 
        label:string -> GraphCategory
public function FindCategoryByLabel(
    label : String
) : GraphCategory

Parameters

  • label
    Type: String

    The label to search for.

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphCategory
The first category with the given label. Null if no category is found.

.NET Framework Security

See Also

Reference

GraphSchema Class

Microsoft.VisualStudio.GraphModel Namespace