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


IClassSchemaEdit3.AddGlobalID Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabase)  

IClassSchemaEdit3.AddGlobalID Method

Adds a global ID column to a class and populates it with GUIDs.

[Visual Basic .NET]
Public Sub AddGlobalID ( _
    ByVal FieldName As String _
)
[C#]
public void AddGlobalID (
    string FieldName
);
[C++]
HRESULT AddGlobalID(
  BSTR FieldName
);
[C++]

Parameters FieldName [in] FieldName is a parameter of type BSTR

Product Availability

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

Remarks

Adds a column of type GlobalID to a Geodatabase table or feature class.

GlobalID columns can be added or deleted to versioned as well as non-versioned ArcSDE tables. In ArcSDE, GlobalID columns can be added to tables that already have data. With Personal or File Geodatabases, however, the tables must have no rows otherwise an error is generated when trying to add the column.

Attempts to add these columns for non-supported data sources like shapefile and coverages fail with errors.

See Also

IClassSchemaEdit3 Interface

.NET Related Topics

Adding and deleting GlobalIDs