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


IArcInfoWorkspace.CreateInfoTable Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesFile > ESRI.ArcGIS.DataSourcesFile > Interfaces > IA > IArcInfoWorkspace Interface > IArcInfoWorkspace.CreateInfoTable Method
ArcGIS Developer Help

IArcInfoWorkspace.CreateInfoTable Method

Creates a new Info Table.

[Visual Basic .NET]
Public Function CreateInfoTable ( _
    ByVal Name As String, _
    ByVal ItemSet As IArcInfoItems _
) As ITable
[C#]
public ITable CreateInfoTable (
    string Name,
    IArcInfoItems ItemSet
);
[C++]
HRESULT CreateInfoTable(
  BSTR Name,
  IArcInfoItems* ItemSet
);
[C++]
Parameters
Name [in]

Name is a parameter of type BSTR ItemSet [in]
ItemSet is a parameter of type IArcInfoItems*

Product Availability

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

Errors Returned

If the name already exists, or the string is longer than 32 characters an error will be returned.

Functional License Check

If your application/site is not appropriately licensed, CreateInfoTable can return an error of FDO_E_NO_SCHEMA_LICENSE.

Remarks

CreateInfoTable creates a new Info table in the workspace that is being referenced. The ITable pointer that is returned can be used to add later and delete items in the table.

The name argument for the name of the new table, can be up to 32 characters long inclusive of the extension. The name cannot be an existing Info table. The table will be created in the workspace used to by the IArcInfoWorkspace, path names are recognized by this method.

The ItemSet object must be given, although it does not have to contain any items. If the ItemSet contains items, they will be created in the new table.

 

See Also

IArcInfoWorkspace Interface