UndoCheckOut 方法 (Visio)Document.UndoCheckOut method (Visio)

关闭从 Microsoft SharePoint Server 网站签出的 Microsoft Visio 文档,删除该文档的本地副本并放弃任何更改,撤消签出,然后重新打开该文档。Closes a Microsoft Visio document checked out from a Microsoft SharePoint Server site, deletes the local copy of the document, discarding any changes, undoes the checkout, and then reopens the document.

语法Syntax

表达式UndoCheckOutexpression.UndoCheckOut

_表达式_一个返回**Document** 对象的表达式。expression An expression that returns a Document object.

返回值Return value

NothingNothing

注解Remarks

调用UndoCheckOut方法等效于单击 "签入" 下拉菜单中的 "放弃签出" (单击 "文件" 选项卡, 然后单击 "信息")。Calling the UndoCheckOut method is the equivalent of clicking Discard Check Out on the Check In drop-down menu (click the File tab, and then click Info).

示例Example

此 Microsoft Visual Basic for Applications (VBA) 宏演示如何使用 UndoCheckOut 方法撤消从 SharePoint Server 中对活动文档的签出。This Microsoft Visual Basic for Applications (VBA) macro shows how to use the UndoCheckOut method to undo the checkout of the active document from a SharePoint server. 在运行此宏之前,请从 SharePoint Server 网站中签出一个 Visio 文档。Before running this macro, check out a Visio document from a SharePoint Server site.

Public Sub UndoCheckOut_Example 
    Visio.ActiveDocument.UndoCheckOut 
End Sub

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.