HierarchicalDataSourceControl.Focus 方法

定義

設定控制項的輸入焦點。Sets input focus to the control.

public:
 override void Focus();
public override void Focus ();
override this.Focus : unit -> unit
Public Overrides Sub Focus ()

例外狀況

嘗試呼叫 Focus() 方法。An attempt was made to call the Focus() method.

備註

因為 HierarchicalDataSourceControl 類別沒有視覺呈現,所以 Focus 在其上呼叫方法會擲回 NotSupportedException 例外狀況。Because the HierarchicalDataSourceControl class has no visual rendering, calling the Focus method on it throws a NotSupportedException exception.

適用於

另請參閱