Muokkaa

Jaa


IDataObject.GetData Method

Definition

Retrieves a data object in a specified data format.

Overloads

GetData(String)

Retrieves a data object in a specified format; the data format is specified by a string.

GetData(Type)

Retrieves a data object in a specified format; the data format is specified by a Type object.

GetData(String, Boolean)

Retrieves a data object in a specified format, optionally converting the data to the specified format.

GetData(String)

Retrieves a data object in a specified format; the data format is specified by a string.

public:
 System::Object ^ GetData(System::String ^ format);
[System.Security.SecurityCritical]
public object GetData (string format);
public object GetData (string format);
[<System.Security.SecurityCritical>]
abstract member GetData : string -> obj
abstract member GetData : string -> obj
Public Function GetData (format As String) As Object

Parameters

format
String

A string that specifies what format to retrieve the data as. See the DataFormats class for a set of predefined data formats.

Returns

A data object with the data in the specified format, or null if the data is not available in the specified format.

Attributes

Remarks

For an implementation of this method, see GetData.

See also

Applies to

GetData(Type)

Retrieves a data object in a specified format; the data format is specified by a Type object.

public:
 System::Object ^ GetData(Type ^ format);
[System.Security.SecurityCritical]
public object GetData (Type format);
public object GetData (Type format);
[<System.Security.SecurityCritical>]
abstract member GetData : Type -> obj
abstract member GetData : Type -> obj
Public Function GetData (format As Type) As Object

Parameters

format
Type

A Type object that specifies what format to retrieve the data as. See the DataFormats class for a set of predefined data formats.

Returns

A data object with the data in the specified format, or null if the data is not available in the specified format.

Attributes

Remarks

For an implementation of this method, see GetData.

See also

Applies to

GetData(String, Boolean)

Retrieves a data object in a specified format, optionally converting the data to the specified format.

public:
 System::Object ^ GetData(System::String ^ format, bool autoConvert);
[System.Security.SecurityCritical]
public object GetData (string format, bool autoConvert);
public object GetData (string format, bool autoConvert);
[<System.Security.SecurityCritical>]
abstract member GetData : string * bool -> obj
abstract member GetData : string * bool -> obj
Public Function GetData (format As String, autoConvert As Boolean) As Object

Parameters

format
String

A string that specifies what format to retrieve the data as. See the DataFormats class for a set of predefined data formats.

autoConvert
Boolean

true to attempt to automatically convert the data to the specified format; false for no data format conversion.

If this parameter is false, the method returns data in the specified format if available, or null if the data is not available in the specified format.

Returns

A data object with the data in the specified format, or null if the data is not available in the specified format.

Attributes

Remarks

For an implementation of this method, see GetData.

See also

Applies to