Document.GetDocumentVersion
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.
public static DocumentVersion GetDocumentVersion(
Document doc
)
-
docThe document whose DocumentVersion will be returned.
-
A non-optional argument was null