IDataObject.GetFormats IDataObject.GetFormats IDataObject.GetFormats IDataObject.GetFormats Method

Definition

Returns a list of formats that the data in this data object is stored in, or can be converted to.

Overloads

GetFormats() GetFormats() GetFormats() GetFormats()

Returns a list of all formats that the data in this data object is stored in, or can be converted to.

GetFormats(Boolean) GetFormats(Boolean) GetFormats(Boolean) GetFormats(Boolean)

Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether or not to also include formats that the data can be automatically converted to.

GetFormats() GetFormats() GetFormats() GetFormats()

Returns a list of all formats that the data in this data object is stored in, or can be converted to.

public:
 cli::array <System::String ^> ^ GetFormats();
[System.Security.SecurityCritical]
public string[] GetFormats ();
abstract member GetFormats : unit -> string[]
Public Function GetFormats () As String()

Returns

String[]

An array of strings, with each string specifying the name of a format supported by this data object.

Remarks

For an implementation of this method, see GetFormats.

GetFormats(Boolean) GetFormats(Boolean) GetFormats(Boolean) GetFormats(Boolean)

Returns a list of all formats that the data in this data object is stored in. A Boolean flag indicates whether or not to also include formats that the data can be automatically converted to.

public:
 cli::array <System::String ^> ^ GetFormats(bool autoConvert);
[System.Security.SecurityCritical]
public string[] GetFormats (bool autoConvert);
abstract member GetFormats : bool -> string[]
Public Function GetFormats (autoConvert As Boolean) As String()

Parameters

autoConvert
Boolean Boolean Boolean Boolean

true to retrieve all formats that data stored in this data object is stored in, or can be converted to; false to retrieve only formats that data stored in this data object is stored in (excluding formats that the data is not stored in, but can be automatically converted to).

Returns

String[]

An array of strings, with each string specifying the name of a format supported by this data object.

Remarks

For an implementation of this method, see GetFormats.

Applies to