ToolboxItem.Initialize(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes the current toolbox item with the specified type to create.
public:
virtual void Initialize(Type ^ type);
public virtual void Initialize (Type type);
public virtual void Initialize (Type? type);
abstract member Initialize : Type -> unit
override this.Initialize : Type -> unit
Public Overridable Sub Initialize (type As Type)
Parameters
Exceptions
The ToolboxItem was locked.
Remarks
The Initialize method configures the toolbox item to create the specified type, if the CreateComponentsCore method has not been overridden to behave differently.
This method performs the following operations:
Sets the AssemblyName property to an AssemblyName indicating the assembly of the specified type.
Sets the DisplayName property to a short type name based on the name of the specified type.
Adds any ToolboxItemFilterAttribute attributes found on the specified type to the Filter property collection.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om