NestedContainer.CreateSite(IComponent, String) 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.
Creates a site for the component within the container.
protected:
override System::ComponentModel::ISite ^ CreateSite(System::ComponentModel::IComponent ^ component, System::String ^ name);
protected override System.ComponentModel.ISite CreateSite (System.ComponentModel.IComponent component, string name);
protected override System.ComponentModel.ISite CreateSite (System.ComponentModel.IComponent component, string? name);
override this.CreateSite : System.ComponentModel.IComponent * string -> System.ComponentModel.ISite
Protected Overrides Function CreateSite (component As IComponent, name As String) As ISite
Parameters
- component
- IComponent
The IComponent to create a site for.
- name
- String
The name to assign to component
, or null
to skip the name assignment.
Returns
The newly created ISite.
Exceptions
component
is null
.
Remarks
If the name
parameter is null
, the IComponent is added to the nested container without an identifying name.
Applies to
See also
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.