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.]
Attempts to get the node with the specified id. If not found, it will create a new node.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetOrCreate ( _
id As String _
) As GraphNode
public GraphNode GetOrCreate(
string id
)
public:
GraphNode^ GetOrCreate(
String^ id
)
member GetOrCreate :
id:string -> GraphNode
public function GetOrCreate(
id : String
) : GraphNode
Parameters
id
Type: System.Stringid of the node
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNode
the node that was found or created
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | thrown if a node with same id already exists, but is of a different node type |
.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.