Package.GetRelationship(String) 메서드

정의

지정된 식별자를 가진 패키지 수준 관계를 반환합니다.

public:
 System::IO::Packaging::PackageRelationship ^ GetRelationship(System::String ^ id);
public System.IO.Packaging.PackageRelationship GetRelationship (string id);
member this.GetRelationship : string -> System.IO.Packaging.PackageRelationship
Public Function GetRelationship (id As String) As PackageRelationship

매개 변수

id
String

반환할 관계의 Id입니다.

반환

지정된 id의 패키지 수준 관계입니다.

예외

id이(가) null인 경우

id가 올바른 XML 식별자가 아닌 경우

지정된 id의 관계가 패키지에 없는 경우

패키지가 열려 있지 않은 경우(Dispose(Boolean) 또는 Close()가 호출된 경우)

패키지가 쓰기 전용인 경우

설명

id 는 유효한 XML 식별자여야 합니다. 형식은 id xsd:ID이며 XML 스키마 파트 2: 데이터 형식 사양의 섹션 3.3.8에 규정된 명명 규칙을 따라야 합니다.

패키징 및 패키지 관계에 대한 자세한 내용은 에서 https://www.ecma-international.org/publications-and-standards/standards/ecma-376/다운로드할 수 있는 OPC(Open Packaging Conventions) 사양의 섹션 1.3을 참조하세요.

적용 대상

추가 정보