Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IObject.GetID Method

Gets the ID of the object.

int GetID();

#### Return Value

the ID of the document

#### Remarks

Note: The object ID of a newly-created object is not available until the `Save()` method is called.

#### Exceptions

Exception Type | Condition
--- | ---
InvalidOperationException | if called for a newly created object before it is saved

#### See Also

IObject Interface | Plumtree.Remote.PRC Namespace