InvalidEditorException Class

The exception that is thrown when an attempt is made to write to a host item code file that is open in an editor that does not support the CodeDOM (such as an XML editor).

Namespace:  Microsoft.VisualStudio.Tools.Applications.DesignTime
Assembly:  Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class InvalidEditorException _
    Inherits Exception
'Usage
Dim instance As InvalidEditorException
[SerializableAttribute]
public sealed class InvalidEditorException : Exception
[SerializableAttribute]
public ref class InvalidEditorException sealed : public Exception
public final class InvalidEditorException extends Exception

Remarks

The exception can occur when methods of the HostAdapter, such as AddMethod or AddEventHandler, are called.

To handle this exception, you should either close the incompatible editor or display an error to the user that the code could not be written.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.VisualStudio.Tools.Applications.DesignTime.InvalidEditorException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

InvalidEditorException Members

Microsoft.VisualStudio.Tools.Applications.DesignTime Namespace