System.ComponentModel.NestedContainer.CreateSite C# (CSharp) Method

CreateSite() protected method

Creates a site for the component within the container.
protected CreateSite ( IComponent component, string name ) : ISite
component IComponent
name string
return ISite
        protected override ISite CreateSite(IComponent component, string name)
        {
            if (component == null)
            {
                throw new ArgumentNullException(nameof(component));
            }
            return new Site(component, this, name);
        }