Package.PartExists(Uri) 메서드

정의

지정된 URI의 파트가 패키지에 있는지 여부를 나타냅니다.

public:
 virtual bool PartExists(Uri ^ partUri);
public virtual bool PartExists (Uri partUri);
abstract member PartExists : Uri -> bool
override this.PartExists : Uri -> bool
Public Overridable Function PartExists (partUri As Uri) As Boolean

매개 변수

partUri
Uri

확인할 파트의 Uri입니다.

반환

지정된 partUri의 파트가 패키지에 있으면 true, 그렇지 않으면 false입니다.

예외

partUri이(가) null인 경우

partUri는 유효한 PackagePart URI(Uniform Resource Identifier)가 아닙니다.

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

패키지가 쓰기 전용인 경우. 이 경우 정보를 읽을 수 없습니다.

설명

partUri 슬래시 문자 "/"로 시작하고 패키지의 루트에서 절대여야 합니다.

자세한 내용은 에서 https://www.ecma-international.org/publications-and-standards/standards/ecma-376/다운로드할 수 있는 OPC(Open Packaging Conventions) 사양을 참조하세요.

적용 대상

추가 정보