GraphCategoryCollection::AddNewCategory Method (String^, Func<GraphMetadata^>^)
Visual Studio 2015
Registers a new GraphCategory
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Parameters
- id
-
Type:
System::String^
Unique Id of the GraphCategory
- callback
-
Type:
System::Func<GraphMetadata^>^
The callback that can lazily create metadata for this category
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: