GraphCategoryCollection.AddNewCategory Methode

Definition

Überlädt

AddNewCategory(String)

Registriert eine neue graphcategory beim standardmetadatenersteller.

AddNewCategory(String, Func<GraphMetadata>)

Registriert eine neue graphcategory.

AddNewCategory(String)

Registriert eine neue graphcategory beim standardmetadatenersteller.

public:
 Microsoft::VisualStudio::GraphModel::GraphCategory ^ AddNewCategory(System::String ^ id);
public Microsoft.VisualStudio.GraphModel.GraphCategory AddNewCategory (string id);
member this.AddNewCategory : string -> Microsoft.VisualStudio.GraphModel.GraphCategory
Public Function AddNewCategory (id As String) As GraphCategory

Parameter

id
String

Eindeutige ID der graphcategory

Gibt zurück

GraphCategory

Das neu registrierte graphcategory-Objekt

Ausnahmen

ausgelöst, wenn ID NULL ist.

ausgelöst, wenn die ID eine leere Zeichenfolge ist

Gilt für

AddNewCategory(String, Func<GraphMetadata>)

Registriert eine neue graphcategory.

public:
 Microsoft::VisualStudio::GraphModel::GraphCategory ^ AddNewCategory(System::String ^ id, Func<Microsoft::VisualStudio::GraphModel::GraphMetadata ^> ^ callback);
public Microsoft.VisualStudio.GraphModel.GraphCategory AddNewCategory (string id, Func<Microsoft.VisualStudio.GraphModel.GraphMetadata> callback);
member this.AddNewCategory : string * Func<Microsoft.VisualStudio.GraphModel.GraphMetadata> -> Microsoft.VisualStudio.GraphModel.GraphCategory
Public Function AddNewCategory (id As String, callback As Func(Of GraphMetadata)) As GraphCategory

Parameter

id
String

Eindeutige ID der graphcategory

callback
Func<GraphMetadata>

Der Rückruf, der die Metadaten für diese Kategorie verzögert erstellen kann.

Gibt zurück

GraphCategory

Das neu registrierte graphcategory-Objekt

Ausnahmen

ausgelöst, wenn ID NULL ist.

ausgelöst, wenn die ID eine leere Zeichenfolge ist

Gilt für