Partilhar via


Método GraphLinkCollection.GetOrCreate (GraphNodeId, String)

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

Sintaxe

'Declaração
Public Function GetOrCreate ( _
    sourceId As GraphNodeId, _
    targetId As String _
) As GraphLink
public GraphLink GetOrCreate(
    GraphNodeId sourceId,
    string targetId
)
public:
GraphLink^ GetOrCreate(
    GraphNodeId^ sourceId, 
    String^ targetId
)
member GetOrCreate : 
        sourceId:GraphNodeId * 
        targetId:string -> GraphLink 
public function GetOrCreate(
    sourceId : GraphNodeId, 
    targetId : String
) : GraphLink

Parâmetros

Valor de retorno

Tipo: Microsoft.VisualStudio.GraphModel.GraphLink

Segurança do .NET Framework

Consulte também

Referência

GraphLinkCollection Classe

Sobrecargas GetOrCreate

Namespace Microsoft.VisualStudio.GraphModel