Share via


GraphSchema.FindCategory Method

Gets the GraphCategory with the specified ID by searching this schema and all its children recursively.

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

Syntax

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

Parameters

  • id
    Type: String

    Unique ID of the GraphCategory to obtain.

Return Value

Type: Microsoft.VisualStudio.GraphModel.GraphCategory
The matching GraphCategory, or null if not found.

.NET Framework Security

See Also

Reference

GraphSchema Class

Microsoft.VisualStudio.GraphModel Namespace