GraphDataObject.GetData Method (String, Boolean)

Gets data for the passed in format

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

Syntax

'Declaration
Public Function GetData ( _
    format As String, _
    autoConvert As Boolean _
) As Object
public Object GetData(
    string format,
    bool autoConvert
)
public:
virtual Object^ GetData(
    String^ format, 
    bool autoConvert
) sealed
abstract GetData : 
        format:string * 
        autoConvert:bool -> Object  
override GetData : 
        format:string * 
        autoConvert:bool -> Object
public final function GetData(
    format : String, 
    autoConvert : boolean
) : Object

Parameters

  • format
    Type: String

    The desired format of the data

  • autoConvert
    Type: Boolean

    Not used

Return Value

Type: Object
The data if the format is supported, null otherwise

Implements

IDataObject.GetData(String, Boolean)

Remarks

If the format asked for is a graph, the graph object is returned without serialization. Otherwise, if the format asked for is supported, the data is returned as a string.

.NET Framework Security

See Also

Reference

GraphDataObject Class

GetData Overload

Microsoft.VisualStudio.GraphModel Namespace