편집

다음을 통해 공유


Control.ControlCollection.RemoveByKey(String) Method

Definition

Removes the child control with the specified key.

public:
 virtual void RemoveByKey(System::String ^ key);
public virtual void RemoveByKey (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)

Parameters

key
String

The name of the child control to remove.

Remarks

The Name property of a Control corresponds to the key for a Control in the Control.ControlCollection.

Applies to