IDataFormat 介面



此 API 現已淘汰。

DataFormat 介面的 DBinding 屬性提供支援。Provides support for the DataFormat property of the DBinding interface.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public interface class IDataFormat
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only.")]
public interface IDataFormat
type IDataFormat = interface
Public Interface IDataFormat


此介面是由工具在內部使用,用來將 Visual Basic 6.0 應用程式升級為 Visual Basic。This interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.


Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.



建立 IDataFormat 的淺層複本。Creates a shallow copy of the IDataFormat.

Convert(Int32, Object, Object)

IDataFormat 轉換成 Visual Basic 6.0 VariantConverts an IDataFormat to a Visual Basic 6.0 Variant.


判斷 IDataFormat 是否為預設 IDataFormatDetermines whether an IDataFormat is the default IDataFormat.

GetBinding(VarEnum, Int32, IRowset, DBCOLUMNINFO, DBBINDING, Int32, Int32)

取得 IDataFormat 的繫結。Gets a binding for a IDataFormat.

GetData(Int32, IntPtr, Object, Int32, Object)

取得 IDataFormat 介面的資料。Gets the data for an IDataFormat interface.


取得 IDataFormat 介面的地區設定 ID。Gets a locale ID for an IDataFormat interface.

GetRawData(Int32, IntPtr, Object, Int32)

取得 IDataFormat 介面的未經處理資料 (Raw Data)。Gets the raw data for an IDataFormat interface.


取得 IDataFormat 介面的子格式型別。Gets the subformat type for an IDataFormat interface.


釋放 IDataFormat 介面的繫結。Releases a binding for an IDataFormat interface.

ReleaseData(Int32, IntPtr)

釋放 IDataFormat 介面的資料。Releases the data for an IDataFormat interface.

SetData(Int32, Object, IntPtr, Object)

設定 IDataFormat 介面的資料。Sets the data for an IDataFormat interface.


設定 IDataFormat 的地區設定 ID。Sets the locale ID for an IDataFormat.

SetRawData(Int32, Object, IntPtr)

設定 IDataFormat 的未經處理資料。Sets the raw data for an IDataFormat.


設定 IDataFormat 介面的子格式型別。Sets the subformat type for an IDataFormat interface.