Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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)
Syntax
'Declaration
Public Function GetOrCreate ( _
sourceId As String, _
targetId As String _
) As GraphLink
public GraphLink GetOrCreate(
string sourceId,
string targetId
)
public:
GraphLink^ GetOrCreate(
String^ sourceId,
String^ targetId
)
member GetOrCreate :
sourceId:string *
targetId:string -> GraphLink
public function GetOrCreate(
sourceId : String,
targetId : String
) : GraphLink
Parameters
sourceId
Type: Stringsource of the link
targetId
Type: Stringtarget of the link
Return Value
Type: Microsoft.VisualStudio.GraphModel.GraphLink
the link that was found or created
.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.