Control.HasEvents Control.HasEvents Control.HasEvents Control.HasEvents Method

定义

返回一个值,该值指示是否为控件或任何子控件注册事件。Returns a value indicating whether events are registered for the control or any child controls.

protected:
 bool HasEvents();
protected bool HasEvents ();
member this.HasEvents : unit -> bool
Protected Function HasEvents () As Boolean

返回

如果注册事件,则为 true;否则为 falsetrue if events are registered; otherwise, false.

适用于