Container.RemoveWithoutUnsiting(IComponent) 方法

定義

Container 移除元件,而不必將 Site 設定為 nullRemoves a component from the Container without setting Site to null.

protected:
 void RemoveWithoutUnsiting(System::ComponentModel::IComponent ^ component);
protected void RemoveWithoutUnsiting (System.ComponentModel.IComponent component);
member this.RemoveWithoutUnsiting : System.ComponentModel.IComponent -> unit
Protected Sub RemoveWithoutUnsiting (component As IComponent)

參數

component
IComponent

要移除的元件。The component to remove.

備註

RemoveWithoutUnsiting 方法會如往常般清除網站,但不會將元件的 Site 屬性設定為 [null]。The RemoveWithoutUnsiting method cleans up the site as usual, but it does not set the component's Site property to null.

適用於

另請參閱