DocumentNotCustomizedException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception that is thrown when you try to perform an invalid operation on a document by using the ServerDocument class.
public ref class DocumentNotCustomizedException sealed : Microsoft::VisualStudio::Tools::Applications::Runtime::RuntimeException
[System.Serializable]
public sealed class DocumentNotCustomizedException : Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
[<System.Serializable>]
type DocumentNotCustomizedException = class
inherit RuntimeException
Public NotInheritable Class DocumentNotCustomizedException
Inherits RuntimeException
- Inheritance
- Attributes
Remarks
This exception is thrown in the following cases:
If you use the Microsoft.VisualStudio.Tools.Applications.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.
Constructors
DocumentNotCustomizedException() | |
DocumentNotCustomizedException(Exception) | |
DocumentNotCustomizedException(String) | |
DocumentNotCustomizedException(String, Exception) |