Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IDocument.GetID Method

Gets the ID of the document.

int GetID();

#### Return Value

the ID of the document

#### Remarks

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

#### Exceptions

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

#### See Also

IDocument Interface | Plumtree.Remote.PRC Namespace