PostBackTrigger.HasTriggered 方法
定义
返回一个指示是否已激活触发器的值。Returns a value that indicates whether the trigger was activated.
protected public:
override bool HasTriggered();
protected internal override bool HasTriggered ();
override this.HasTriggered : unit -> bool
Protected Friend Overrides Function HasTriggered () As Boolean
返回
如果已激活触发器,则为 true;否则为 false。true if the trigger was activated; otherwise, false.
注解
控件开发人员可以重写 HasTriggered 属性,以提供用于确定触发器是否已激活的自定义逻辑。Control developers can override the HasTriggered property to provide custom logic for determining whether the trigger was activated. 若要查看自定义触发器在设计时在控件的元素中出现 <Triggers> UpdatePanel ,可以在页面上或在 Web.config 文件的节中添加指令。To see your custom trigger appear at design time in the <Triggers> element of the UpdatePanel control, you can add an directive on the page or in the section of the Web.config file.