_Document.CheckInWithVersion(Boolean, Object, Boolean, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Puts a document on a server from a local computer, and sets the local document to read-only so that it cannot be edited locally.
public void CheckInWithVersion (bool SaveChanges = false, ref object Comments, bool MakePublic = false, ref object VersionType);
abstract member CheckInWithVersion : bool * obj * bool * obj -> unit
Public Sub CheckInWithVersion (Optional SaveChanges As Boolean = false, Optional ByRef Comments As Object, Optional MakePublic As Boolean = false, Optional ByRef VersionType As Object)
Parameters
- SaveChanges
- Boolean
True to save the document to the server location. The default is True.
- Comments
- Object
Comments for the revision of the document being checked in (only applies if SaveChanges
is set to true).
- MakePublic
- Boolean
True to allow the user to publish the document after it is checked in.
- VersionType
- Object
Specifies versioning information for the document.
Remarks
Setting the MakePublic
parameter to True submits the document for the approval process, which can eventually result in a version of the document being published to users with read-only rights to the document (only applies if SaveChanges
is set to True).
To take advantage of the collaboration features built into Microsoft Word, documents must be stored on a Microsoft SharePoint Portal Server.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應