DocumentAlreadyCustomizedException Class (2007 System)

The exception that is thrown when you attempt to attach a customization to a document that is already part of a document-level customization that was created by using Visual Studio Tools for Office.

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 DocumentAlreadyCustomizedException _
    Inherits RuntimeException
'Usage
Dim instance As DocumentAlreadyCustomizedException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class DocumentAlreadyCustomizedException : RuntimeException
[SerializableAttribute]
[PermissionSetAttribute(SecurityAction::Demand, Name = L"FullTrust")]
public ref class DocumentAlreadyCustomizedException sealed : public RuntimeException
public final class DocumentAlreadyCustomizedException extends RuntimeException

Remarks

This exception is thrown if you try to use the AddCustomization method of the ServerDocument class to attach a customization to a document that already has a customization associated with it.

Inheritance Hierarchy

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

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

DocumentAlreadyCustomizedException Members

Microsoft.VisualStudio.Tools.Applications.Runtime Namespace