ToolboxItem.AssemblyName Property

Definition

Gets or sets the name of the assembly that contains the type or types that the toolbox item creates.

public:
 property System::Reflection::AssemblyName ^ AssemblyName { System::Reflection::AssemblyName ^ get(); void set(System::Reflection::AssemblyName ^ value); };
public System.Reflection.AssemblyName AssemblyName { get; set; }
public System.Reflection.AssemblyName? AssemblyName { get; set; }
member this.AssemblyName : System.Reflection.AssemblyName with get, set
Public Property AssemblyName As AssemblyName

Property Value

An AssemblyName that indicates the assembly containing the type or types to create.

Remarks

The AssemblyName property specifies the assembly that contains the types of the components to create.

Notes to Inheritors

If your derived toolbox item class creates multiple components that are located in different assemblies, you must ensure that references to these assemblies exist in your project. It is advisable to add these references from an overload of the CreateComponentsCore(IDesignerHost) method. Even if your CreateComponentsCore(IDesignerHost) method does not depend on the value of the AssemblyName property, you should ensure that this property is set to the assembly that one of the components to create belongs to, because it is displayed in the Customize Toolbox dialog box in Visual Studio.

Applies to

See also