Compartir a través de


ControlNameAlreadyExistsException Class

Definition

The exception that is thrown when you try to add a control to a Microsoft Office Excel workbook or Microsoft Office Word document at run time, but the name provided for the new control already exists in the workbook or document.

public ref class ControlNameAlreadyExistsException sealed : Microsoft::VisualStudio::Tools::Applications::Runtime::RuntimeException
[System.Diagnostics.DebuggerNonUserCode]
[System.Serializable]
public sealed class ControlNameAlreadyExistsException : Microsoft.VisualStudio.Tools.Applications.Runtime.RuntimeException
[<System.Diagnostics.DebuggerNonUserCode>]
[<System.Serializable>]
type ControlNameAlreadyExistsException = class
    inherit RuntimeException
Public NotInheritable Class ControlNameAlreadyExistsException
Inherits RuntimeException
Inheritance
ControlNameAlreadyExistsException
Attributes

Remarks

You can add controls to Excel workbooks and Word documents at run time by using the Office development tools in Visual Studio. For more information, see Adding Controls to Office Documents at Run Time.

Constructors

ControlNameAlreadyExistsException()
ControlNameAlreadyExistsException(Exception)
ControlNameAlreadyExistsException(String, Exception)
ControlNameAlreadyExistsException(String, String, Exception)
ControlNameAlreadyExistsException(String, String)
ControlNameAlreadyExistsException(String)

Applies to