This document is archived and information here might be outdated.  Recommended version.


ISqlWorkspace.GetColumns Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ISqlWorkspace.GetColumns Method

Returns column information for a table.

[Visual Basic .NET]
Public Sub GetColumns ( _
    ByVal TableName As String, _
    ByRef ppColumnName As IStringArray, _
    ByRef ppColumnType As IStringArray, _
    ByRef ppIsNullable As IVariantArray, _
    ByRef ppSize As ILongArray, _
    ByRef ppPrecision As ILongArray, _
    ByRef ppScale As ILongArray _
)
[C#]
public void GetColumns (
    string TableName,
    ref IStringArray ppColumnName,
    ref IStringArray ppColumnType,
    ref IVariantArray ppIsNullable,
    ref ILongArray ppSize,
    ref ILongArray ppPrecision,
    ref ILongArray ppScale
);
[C++]
HRESULT GetColumns(
  BSTR TableName,
  IStringArray** ppColumnName,
  IStringArray** ppColumnType,
  IVariantArray** ppIsNullable,
  ILongArray** ppSize,
  ILongArray** ppPrecision,
  ILongArray** ppScale
);
[C++]

Parameters TableName [in] TableName is a parameter of type BSTR ppColumnName [out]
ppColumnName is a parameter of type IStringArray ppColumnType [out]
ppColumnType is a parameter of type IStringArray ppIsNullable [out]
ppIsNullable is a parameter of type IVariantArray ppSize [out]
ppSize is a parameter of type ILongArray ppPrecision [out]
ppPrecision is a parameter of type ILongArray ppScale [out]
ppScale is a parameter of type ILongArray

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

ISqlWorkspace Interface