Binding an event filter to an event handler.
将事件过滤器绑定到事件处理程序。
Listing 1 shows an event filter that skips all XML processing instructions.
清单1给出了一个忽略所有XML处理指令的事件过滤器。
Listing 1 shows an example of creating an event filter with SBLIM CIM client library.
清单1显示了用SBLIMCIM客户机库创建事件过滤器的示例。
Fortunately, StAX allows you to skip certain event classes by implementing an event filter.
幸运的是,StAX允许您通过实现事件过滤器忽略某些事件类。
Listing 4 shows how to bind an event handler to an event filter with the SBLIM CIM client library.
清单4显示了如何用SBLIMCIM客户机库绑定事件处理程序与事件过滤器。
In this case the Actionable event filter is a very simple filter, which just checks the value in an event field.
在本例中actionableEvent过滤器是一个非常简单的过滤器,它只检查每个事件字段的值。
To create an event filter, create an instance of the CIM_IndicationFilter class and define values for its properties.
要创建事件过滤器,需要创建cim_indicationfilter类的实例并定义其属性值。
We install the delegate's default event filter on the editor to ensure that it provides the standard editing shortcuts that users expect.
我们把委托默认的事件过滤器安装在编辑器上,以确保它提供用户所期望的标准编辑快捷键。
So, binding an event filter to an event handler means you're setting up a situation in which specific actions will be taken when a particular event happens.
因此,绑定事件过滤器与事件处理程序意味着设置在特定事件发生时采取特定操作的情形。
When you bind an event filter to an event handler, you are creating an instance of the CIM_IndicationSubscription class and setting the properties filter and handler of that instance.
在绑定事件过滤器与事件处理程序时,您是在创建cim_indicationsubscription类的实例并设置该实例的Filter和handler属性。
In all measurements used to generate the results above, the Actionable event filter returned true for one in every 1000 events, so one action was generated for every 1000 events processed.
在以上所有用来生成结果的度量数据中,ActionableEvent过滤器在每处理1000个事件返回1个true,因此每处理1000个事件将生成1个动作。
In this scenario, the Actionable Event filter is the same as that in the 1 simple rule scenario.
在该场景中,ActionableEvent过滤器与1个简单规则场景中的过滤器一样。
In this scenario, the Actionable Event filter is the same as that in the 1 simple rule scenario.
在该场景中,ActionableEvent过滤器与1个简单规则场景中的过滤器一样。
应用推荐