PackagePart.RelationshipExists(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,指示該部分是否與指定 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
參數
傳回
true 若此部分與指定 id有關係;否則, false。
例外狀況
id 是 null。
id 不是有效的 XML 識別碼。
該套件為唯寫(無法讀取關係資訊)。
備註
id 必須是有效的 XML 識別碼。 該 id 型別為 xsd:ID,必須遵循 XML 架構第 2 部分:資料型 別規範(參見 https://www.w3.org/TR/xmlschema-2/#ID)中規定的命名規則。