DataViewHierarchyAccessor.IsDocumentOpen 方法

定义

重载

IsDocumentOpen(String)

检索一个布尔值,该值指示具有特定名字对象的文档当前是否已打开。

IsDocumentOpen(String, Guid)

检索一个布尔值,该值指示具有特定名字对象和逻辑视图的文档当前是否已打开。

IsDocumentOpen(String)

检索一个布尔值,该值指示具有特定名字对象的文档当前是否已打开。

public:
 bool IsDocumentOpen(System::String ^ documentMoniker);
public bool IsDocumentOpen (string documentMoniker);
member this.IsDocumentOpen : string -> bool
Public Function IsDocumentOpen (documentMoniker As String) As Boolean

参数

documentMoniker
String

文档名字对象。

返回

Boolean

如果指定的文档已打开,则返回 true;否则,返回 false。

例外

documentMoniker 参数为 null。

适用于

IsDocumentOpen(String, Guid)

检索一个布尔值,该值指示具有特定名字对象和逻辑视图的文档当前是否已打开。

public:
 bool IsDocumentOpen(System::String ^ documentMoniker, Guid logicalView);
public bool IsDocumentOpen (string documentMoniker, Guid logicalView);
member this.IsDocumentOpen : string * Guid -> bool
Public Function IsDocumentOpen (documentMoniker As String, logicalView As Guid) As Boolean

参数

documentMoniker
String

文档名字对象。

logicalView
Guid

逻辑视图的唯一标识符。

返回

Boolean

如果指定的文档已打开,则返回 true;否则,返回 false。

例外

documentMoniker 参数为 null。

适用于