ControlNameAlreadyExistsException Class

 

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.

Namespace:   Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)

System::Object
  System::Exception
    Microsoft.VisualStudio.Tools.Applications.Runtime::RuntimeException
      Microsoft.Office.Tools::ControlNameAlreadyExistsException

[SerializableAttribute]
[DebuggerNonUserCodeAttribute]
[SecurityPermissionAttribute(SecurityAction::Demand, Unrestricted = true)]
[SecurityPermissionAttribute(SecurityAction::InheritanceDemand, 
	Unrestricted = true)]
public ref class ControlNameAlreadyExistsException sealed : RuntimeException

NameDescription
System_CAPS_pubmethodControlNameAlreadyExistsException()

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

System_CAPS_pubmethodControlNameAlreadyExistsException(Exception^)

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

System_CAPS_pubmethodControlNameAlreadyExistsException(String^)

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

System_CAPS_pubmethodControlNameAlreadyExistsException(String^, Exception^)

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

System_CAPS_pubmethodControlNameAlreadyExistsException(String^, String^)

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

System_CAPS_pubmethodControlNameAlreadyExistsException(String^, 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.)

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.

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: