The logic used to determine if the OID field should be renamed to "ObjectID" can be classified with 4 cases.
Case1: Both the InputWorkspace and ValidateWorkspace are provided.
- The OID field is renamed to "ObjectID" if the InputWorkspace is of type esriFileSystemWorkspace and the ValidateWorkspace is a Geodatabase workspace (type esriLocalDatabaseWorkspace or esriRemoteDatabaseWorkspace).
Case2: Only the InputWorkspace is provided (the ValidateWorkspace has not been provided).
- The OID field is renamed to "ObjectID" if the InputWorkspace is of type esriFileSystemWorkspace.
Case3: Only the ValidateWorkspace is provided (the InputWorkspace has not been provided).
- The OID field is renamed to "ObjectID" if the ValidateWorkspace is a Geodatabase workspace.
Case4: Neither of the workspaces is provided
- The OID field is not renamed to "ObjectID"
浙公网安备 33010602011771号