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