Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Registers a new GraphCategory with default metadata creator.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function AddNewCategory ( _
id As String _
) As GraphCategory
public GraphCategory AddNewCategory(
string id
)
public:
GraphCategory^ AddNewCategory(
String^ id
)
member AddNewCategory :
id:string -> GraphCategory
public function AddNewCategory(
id : String
) : GraphCategory
Parameters
id
Type: StringUnique ID of the GraphCategory.
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphCategory
The newly registered GraphCategory object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if ID is null. |
InvalidOperationException | Thrown if ID is empty string. |
.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.