GraphCategoryCollection::AddNewCategory Method (String^)
Visual Studio 2015
Registers a new GraphCategory with default metadata creator.
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- id
-
Type:
System::String^
Unique ID of the GraphCategory.
Return Value
Type: Microsoft.VisualStudio.GraphModel::GraphCategory^The newly registered GraphCategory object.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if ID is null. |
| InvalidOperationException | Thrown if ID is empty string. |
Show: