This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IC > IClassSchemaEdit3 Interface > IClassSchemaEdit3.AddGlobalID Method (ArcObjects .NET 10.4 SDK) |
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
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.