DocumentNotCustomizedException 클래스(2007 시스템)
업데이트: 2007년 11월
문서에서 ServerDocument 클래스를 사용하여 잘못된 작업을 수행하려는 경우 throw되는 예외입니다.
네임스페이스: Microsoft.VisualStudio.Tools.Applications.Runtime
어셈블리: Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0(Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
구문
<SerializableAttribute> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class DocumentNotCustomizedException _
Inherits RuntimeException
Dim instance As DocumentNotCustomizedException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class DocumentNotCustomizedException : RuntimeException
설명
이 예외는 다음과 같은 경우에 throw됩니다.
ServerDocument.ServerDocument 생성자를 사용하여 Visual Studio Tools for Office 사용자 지정이 아직 없는 문서를 열면서 해당 문서를 읽기 전용 모드에서 열려는 경우
AddCustomization 메서드를 사용하여 문서에 사용자 지정을 연결하려고 하는데 문서가 손상되었거나 사용 권한이 제한된 경우
상속 계층 구조
System.Object
System.Exception
Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
Microsoft.VisualStudio.Tools.Applications.Runtime.DocumentNotCustomizedException
스레드로부터의 안전성
이 형식의 모든 공용 static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.