Partager via


GraphObject.AddCategory Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Adds a category to the object.

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

Syntax

'Declaration
Public Function AddCategory ( _
    category As GraphCategory _
) As Boolean
public bool AddCategory(
    GraphCategory category
)
public:
bool AddCategory(
    GraphCategory^ category
)
member AddCategory : 
        category:GraphCategory -> bool
public function AddCategory(
    category : GraphCategory
) : boolean

Parameters

Return Value

Type: System.Boolean
The category, if it was removed, or null if it was not found.

.NET Framework Security

See Also

Reference

GraphObject Class

Microsoft.VisualStudio.GraphModel Namespace