次の方法で共有


GraphDataObject Constructors

Definition

Overloads

GraphDataObject(Graph, Guid)

Construct new GraphDataObject.

GraphDataObject(String, Guid, DataFormat[])

Construct new GraphDataObject that publishes specific set of DGML formats

GraphDataObject(Graph, Guid)

Construct new GraphDataObject.

public:
 GraphDataObject(Microsoft::VisualStudio::GraphModel::Graph ^ graph, Guid sourceId);
public GraphDataObject (Microsoft.VisualStudio.GraphModel.Graph graph, Guid sourceId);
new Microsoft.VisualStudio.GraphModel.GraphDataObject : Microsoft.VisualStudio.GraphModel.Graph * Guid -> Microsoft.VisualStudio.GraphModel.GraphDataObject
Public Sub New (graph As Graph, sourceId As Guid)

Parameters

graph
Graph

The graph being exchanged

sourceId
Guid

The source Id of the Graph.

Applies to

GraphDataObject(String, Guid, DataFormat[])

Construct new GraphDataObject that publishes specific set of DGML formats

public:
 GraphDataObject(System::String ^ dgml, Guid sourceId, cli::array <System::Windows::DataFormat ^> ^ formats);
public GraphDataObject (string dgml, Guid sourceId, System.Windows.DataFormat[] formats);
new Microsoft.VisualStudio.GraphModel.GraphDataObject : string * Guid * System.Windows.DataFormat[] -> Microsoft.VisualStudio.GraphModel.GraphDataObject
Public Sub New (dgml As String, sourceId As Guid, formats As DataFormat())

Parameters

dgml
String

The DGML being exchanged

sourceId
Guid

The source Id of the Graph.

formats
DataFormat[]

The DataFormats to publish, for example, you could specify GraphDataObject.DgmlFormat

Applies to