DocumentClosedException Class (2007 System)
The exception that is thrown when you attempt to perform an operation using the ServerDocument class on a closed document.
Namespace: Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly: Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll)
Syntax
'Declaration
<SerializableAttribute> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public NotInheritable Class DocumentClosedException _
Inherits RuntimeException
'Usage
Dim instance As DocumentClosedException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class DocumentClosedException : RuntimeException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class DocumentClosedException sealed : public RuntimeException
public final class DocumentClosedException extends RuntimeException
Remarks
For example, this exception is thrown if you call the Save method of a ServerDocument object after the document has been closed.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
Microsoft.VisualStudio.Tools.Applications.Runtime.DocumentClosedException
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.