Document.GetDocumentVersion
Method
Description:
Gets the DocumentVersion that corresponds to a document.
Gets the DocumentVersion that corresponds to a document.
Remarks:
This function can be combined with IsModified to see whether a document in memory is different from a version on disk. The documents are different if the document is modified or if the two DocumentVersions differ.
This function can be combined with IsModified to see whether a document in memory is different from a version on disk. The documents are different if the document is modified or if the two DocumentVersions differ.
Parameters
Parameter | Type | Description |
---|---|---|
doc | Document | The document whose DocumentVersion will be returned. |
Return Value
Type | Description |
---|---|
DocumentVersion | The DocumentVersion corresponding to the given document. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |