AquaLogic Interaction Development Kit (IDK) 6.0.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 | The method was called for a newly created document before it was saved.

#### See Also

IDocument Interface | Plumtree.Remote.PRC Namespace