ArcObjects Library Reference (GeoDatabase)  

IClassSchemaEditEx.UnregisterGlobalIDColumn Method

Unregisters this column as an OID with the database.

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

Parameters

columnName [in]   columnName is a parameter of type BSTR

Product Availability

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

Errors Returned

-2147212936 - FDO_UNREGISTER_GLOBALID_NOT_SUPPORTED

Cannot unregister a GlobalID field if data is versioned or replicated

Remarks

This method converts a field of type GlobalID to a field of type GUID.

The object must reference an unversioned ArcSDE feature class or table.  Use the IVersionedObject3::IsRegisteredAsVersioned property to determine if a dataset is versioned.  Additionally the dataset must not be replicated. Use the IWorkspaceReplicasAdmin2::IsReferencedByReplica method to determine if the dataset is part of a replica.

A Global ID field must not already exist on the dataset referenced by the object. Use the IClassEx::HasGlobalID property to determine if a dataset has a Global ID field.

The columnName must reference a field of type GlobalID in the dataset referenced by the object.  The IField::Type property can be used to determine a field type. 

Errors will be returned if any of the above requirements are not met.

See Also

IClassSchemaEditEx Interface

.NET Related Topics

Copying or loading data while preserving GlobalID values |