DocumentNotCustomizedException Class
The exception that is thrown when you try to perform an invalid operation on a document by using the ServerDocument class.
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)
System::Exception
Microsoft.VisualStudio.Tools.Applications.Runtime::RuntimeException
Microsoft.VisualStudio.Tools.Applications.Runtime::DocumentNotCustomizedException
| Name | Description | |
|---|---|---|
![]() | DocumentNotCustomizedException() | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | DocumentNotCustomizedException(Exception^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | DocumentNotCustomizedException(String^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
![]() | DocumentNotCustomizedException(String^, Exception^) | This API supports the product infrastructure and is not intended to be used directly from your code. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetBaseException() | (Inherited from Exception.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | (Inherited from Exception.) |
![]() | GetType() | (Inherited from Exception.) |
![]() | ToString() | (Inherited from Exception.) |
This exception is thrown in the following cases:
If you use the ServerDocument::ServerDocument constructor to open a document that does not already have a customization, and you try to open the document in read-only mode.
If you try to attach a customization to a document by using the AddCustomization method, but the document is corrupt or has restricted permissions.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

