GraphLinkCollection::GetOrCreate Method (String^, String^)

 

Attempts to get the link with the specified source, target. If not found, a new link will be created. It also creates the source and target Node if those are not already defined (and these are created with no category).

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
GraphLink^ GetOrCreate(
	String^ sourceId,
	String^ targetId
)

Parameters

sourceId
Type: System::String^

source of the link

targetId
Type: System::String^

target of the link

Return Value

Type: Microsoft.VisualStudio.GraphModel::GraphLink^

the link that was found or created

Return to top
Show: