Partager via


GraphDataObject.GetData Method

Definition

Overloads

GetData(String)

Gets the data for the passed in format

GetData(Type)

Gets the data for the passed in format

GetData(IDataObject)

Get the DGML in the given data object.

GetData(String, Boolean)

Gets data for the passed in format

GetData(String)

Gets the data for the passed in format

public:
 virtual System::Object ^ GetData(System::String ^ format);
public object GetData (string format);
abstract member GetData : string -> obj
override this.GetData : string -> obj
Public Function GetData (format As String) As Object

Parameters

format
String

The desired format

Returns

The data if the foramt is supported

Implements

Applies to

GetData(Type)

Gets the data for the passed in format

public:
 virtual System::Object ^ GetData(Type ^ format);
public object GetData (Type format);
abstract member GetData : Type -> obj
override this.GetData : Type -> obj
Public Function GetData (format As Type) As Object

Parameters

format
Type

The format desired

Returns

The data for this object if the format type is supported, null otherwise

Implements

Remarks

If type passed in is a string, then the graph is returned as an xml string. If the type passed in is a Graph, then the graph object is returned without any serialization

Applies to

GetData(IDataObject)

Get the DGML in the given data object.

public:
 static System::String ^ GetData(System::Windows::IDataObject ^ data);
public static string GetData (System.Windows.IDataObject data);
static member GetData : System.Windows.IDataObject -> string
Public Shared Function GetData (data As IDataObject) As String

Parameters

data
IDataObject

The data object from which to get data

Returns

The dgml from the data object if the format is recognized, null otherwise

Applies to

GetData(String, Boolean)

Gets data for the passed in format

public:
 virtual System::Object ^ GetData(System::String ^ format, bool autoConvert);
public object GetData (string format, bool autoConvert);
abstract member GetData : string * bool -> obj
override this.GetData : string * bool -> obj
Public Function GetData (format As String, autoConvert As Boolean) As Object

Parameters

format
String

The desired format of the data

autoConvert
Boolean

Ignored

Returns

The data if the format is supported, null otherwise

Implements

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.

Applies to