_Document.CheckIn(Boolean, Object, Boolean) 方法

定义

该方法将文档从本地计算机返回到服务器,并将本地文档设为只读,使之无法在本地进行编辑。Returns a document from a local computer to a server, and sets the local document to read-only so that it cannot be edited locally.

public void CheckIn (bool SaveChanges = false, ref object Comments, bool MakePublic = false);
abstract member CheckIn : bool * obj * bool -> unit
Public Sub CheckIn (Optional SaveChanges As Boolean = false, Optional ByRef Comments As Object, Optional MakePublic As Boolean = false)

参数

SaveChanges
Boolean

可选属性,类型为 BooleanOptional Boolean. True 将文档保存到服务器位置。True saves the document to the server location. 默认值为 TrueThe default is True.

Comments
Object

可选对象Optional Object. 要签入的文档修订的注释(仅当 SaveChanges 等于True时才适用)。Comments for the revision of the document being checked in (only applies if SaveChanges equals True).

MakePublic
Boolean

可选属性,类型为 BooleanOptional Boolean. 允许用户执行签入后进行文档发布。True allows the user to perform a publish on the document after being checked in. 这将提交文档以供审批过程,这最终会导致文档的版本被发布给对文档具有只读权限的用户(仅当 SaveChanges 等于True时适用)。This 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 equals True).

注解

要利用 Microsoft Word 中内置的协作功能,文档必须存储在 Microsoft SharePoint Portal Server 上。To take advantage of the collaboration features built into Microsoft Word, documents must be stored on a Microsoft SharePoint Portal Server.

适用于