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 的套件層級關係,就是 true,否則為 false

例外狀況

idnull

id 不是有效的 XML 識別項。

套件沒有開啟 (已呼叫 Dispose(Boolean)Close())。

封裝是唯寫的。

備註

如需詳細資訊,請參閱可在 下載 https://www.ecma-international.org/publications-and-standards/standards/ecma-376/的開放封裝慣例 (OPC) 規格。

適用於

另請參閱