GraphObject.AddCategory Method
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
category
Type: Microsoft.VisualStudio.GraphModel.GraphCategoryThe category to add.
Return Value
Type: Boolean
The category, if it was removed, or null if it was not found.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.