DocumentNotCustomizedException Class

 

The exception that is thrown when you try to perform an invalid operation on a document by using the ServerDocument class.

Namespace:   Microsoft.VisualStudio.Tools.Applications.Runtime
Assembly:  Microsoft.VisualStudio.Tools.Applications.Runtime (in Microsoft.VisualStudio.Tools.Applications.Runtime.dll)

System.Object
  System.Exception
    Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
      Microsoft.VisualStudio.Tools.Applications.Runtime.DocumentNotCustomizedException

[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class DocumentNotCustomizedException : RuntimeException

NameDescription
System_CAPS_pubmethodDocumentNotCustomizedException()

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodDocumentNotCustomizedException(Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodDocumentNotCustomizedException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodDocumentNotCustomizedException(String, Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_pubmethodToString()

(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.

Return to top
Show: