Szerkesztés

Megosztás a következőn keresztül:


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()

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

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()

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 ();
public string[] GetFormats ();
[<System.Security.SecurityCritical>]
abstract member GetFormats : unit -> string[]
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.

Attributes

Remarks

For an implementation of this method, see GetFormats.

Applies to

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);
public string[] GetFormats (bool autoConvert);
[<System.Security.SecurityCritical>]
abstract member GetFormats : bool -> string[]
abstract member GetFormats : bool -> string[]
Public Function GetFormats (autoConvert As Boolean) As String()

Parameters

autoConvert
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.

Attributes

Remarks

For an implementation of this method, see GetFormats.

Applies to