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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για