语言

Package.RelationshipExists(String) 方法

定义

指示包中是否包含与给定 ID 的包级关系。

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

参数

id
String

Id要检查的关系。

返回

如果与指定 包的包级关系在包中,则为 。

例外

id 是 null。

id 不是有效的 XML 标识符。

包未打开(Dispose(Boolean) 或 Close() 已调用)。

包是只写包。

注解

有关其他信息,请参阅可在以下位置 https://www.ecma-international.org/publications-and-standards/standards/ecma-376/下载的开放打包约定 (OPC) 规范。

适用于

另请参阅