Partager via


GraphLinkCollection.GetOrCreate, méthode (GraphNodeId, GraphNodeId, String, GraphCategory)

Espace de noms :  Microsoft.VisualStudio.GraphModel
Assembly :  Microsoft.VisualStudio.GraphModel (dans Microsoft.VisualStudio.GraphModel.dll)

Syntaxe

'Déclaration
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

Paramètres

Valeur de retour

Type : Microsoft.VisualStudio.GraphModel.GraphLink

Sécurité .NET Framework

Voir aussi

Référence

GraphLinkCollection Classe

GetOrCreate, surcharge

Microsoft.VisualStudio.GraphModel, espace de noms