PackagePart.GetRelationshipsByType(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一組與指定 RelationshipType相符的關係集合。
public:
System::IO::Packaging::PackageRelationshipCollection ^ GetRelationshipsByType(System::String ^ relationshipType);
public System.IO.Packaging.PackageRelationshipCollection GetRelationshipsByType(string relationshipType);
member this.GetRelationshipsByType : string -> System.IO.Packaging.PackageRelationshipCollection
Public Function GetRelationshipsByType (relationshipType As String) As PackageRelationshipCollection
參數
- relationshipType
- String
RelationshipType在收藏中尋找並返回的關係。
傳回
一組符合指定 relationshipType的關係集合。
例外狀況
relationshipType 是 null。
relationshipType 是空字串。
該套件為唯寫(無法讀取關係資訊)。
備註
回傳的集合永遠不會 null是;然而,如果沒有符合該零件定義 relationshipType 的關係,集合可能包含零元素。
弦中任何前置或後方空格 relationshipType 都會自動修剪。