Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds the specified style to the collection. If the given style belongs to a different graph, it clones it and returns the new style.
Namespace: Microsoft.VisualStudio.GraphModel.Styles
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Sub Add ( _
item As GraphConditionalStyle _
)
public void Add(
GraphConditionalStyle item
)
public:
virtual void Add(
GraphConditionalStyle^ item
) sealed
abstract Add :
item:GraphConditionalStyle -> unit
override Add :
item:GraphConditionalStyle -> unit
public final function Add(
item : GraphConditionalStyle
)
Parameters
item
Type: Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyleThe node to add.
Implements
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if node is null. |
| InvalidOperationException | Thrown if the unique node id already exists. |
.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.