GraphNodeCollection.GetOrCreate Method (GraphNodeId, String, GraphCategory)
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Function GetOrCreate ( _
id As GraphNodeId, _
label As String, _
category As GraphCategory _
) As GraphNode
public GraphNode GetOrCreate(
GraphNodeId id,
string label,
GraphCategory category
)
public:
GraphNode^ GetOrCreate(
GraphNodeId^ id,
String^ label,
GraphCategory^ category
)
member GetOrCreate :
id:GraphNodeId *
label:string *
category:GraphCategory -> GraphNode
public function GetOrCreate(
id : GraphNodeId,
label : String,
category : GraphCategory
) : GraphNode
Parameters
- label
Type: System.String
- category
Type: Microsoft.VisualStudio.GraphModel.GraphCategory
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphNode
.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.