GraphCategoryCollection::AddNewCategory Method (String^)

 

Registers a new GraphCategory with default metadata creator.

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

public:
GraphCategory^ AddNewCategory(
	String^ id
)

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.

Return to top
Show: