Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Construct new GraphDataObject that publishes specific set of DGML formats
Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Sub New ( _
    dgml As String, _
    sourceId As Guid, _
    formats As DataFormat() _
)
public GraphDataObject(
    string dgml,
    Guid sourceId,
    DataFormat[] formats
)
public:
GraphDataObject(
    String^ dgml, 
    Guid sourceId, 
    array<DataFormat^>^ formats
)
new : 
        dgml:string * 
        sourceId:Guid * 
        formats:DataFormat[] -> GraphDataObject
public function GraphDataObject(
    dgml : String, 
    sourceId : Guid, 
    formats : DataFormat[]
)
Parameters
- dgml 
 Type: System.String- The DGML being exchanged 
- sourceId 
 Type: System.Guid- The source Id of the Graph. 
- formats 
 Type: array<System.Windows.DataFormat[]- The DataFormats to publish, for example, you could specify GraphDataObject.DgmlFormat 
.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.