共用方式為


IMetaDataTables::GetColumnInfo 方法

更新:2007 年 11 月

在指定資料表中取得與指定資料行有關的資料。

HRESULT GetColumnInfo ( 
        [in]  ULONG        ixTbl,
        [in]  ULONG        ixCol,
        [out] ULONG        *poCol,
        [out] ULONG        *pcbCol,
        [out] ULONG        *pType,
        [out] const char   **ppName
);

參數

  • ixTbl
    [in] 所需資料表的索引。

  • ixCol
    [in] 所需資料行的索引。

  • poCol
    [out] 資料列中資料欄位移的指標。

  • pcbCol
    [out] 資料欄的大小指標 (以位元組為單位)。

  • pType
    [out] 資料欄中值之型別的指標。

  • ppName
    [out] 資料欄名稱之指標的指標。

需求

**平台:**請參閱 .NET Framework 系統需求

**標頭:**Cor.h

**程式庫:**當做 MsCorEE.dll 中的資源使用

**.NET Framework 版本:**3.5 SP1、3.5、3.0 SP1、3.0、2.0 SP1、2.0、1.1、1.0

請參閱

參考

IMetaDataTables

IMetaDataTables2