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