AquaLogic Interaction Development Kit (IDK) 6.0.0 |

# IDocument.Save Method

Saves any changes made to this object in the portal.

int Save();

#### Return Value

The ID of the document created; this value is useful since the document is always newly created in the portal.

#### Remarks

The subinterface `IRemoteDocument` will throw an System.InvalidOperationException if `setType()` is not called.

#### Exceptions

Exception Type | Condition
--- | ---
HttpException | The query interface URL is not valid.
InvalidOperationException | The setType() method was not called in the IRemoteDocument subinterface.
PortalException | An operation resulted in an error in the portal.

#### See Also

IDocument Interface | Plumtree.Remote.PRC Namespace