Control.ControlCollection.RemoveByKey(String) 方法

定义

移除具有指定键的子控件。Removes the child control with the specified key.

public:
 virtual void RemoveByKey(System::String ^ key);
public virtual void RemoveByKey (string key);
abstract member RemoveByKey : string -> unit
override this.RemoveByKey : string -> unit
Public Overridable Sub RemoveByKey (key As String)

参数

key
String

要移除的子控件的名称。The name of the child control to remove.

注解

@No__t 的 Control 属性对应于 Control.ControlCollection 中 @no__t 的键。The Name property of a Control corresponds to the key for a Control in the Control.ControlCollection.

适用于