DataViewHierarchyAccessor.IsDocumentOpen 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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
文档名字对象。
返回
如果指定的文档已打开,则返回 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
逻辑视图的唯一标识符。
返回
如果指定的文档已打开,则返回 true;否则,返回 false。
例外
documentMoniker 参数为 null。