EventCommandEventArgs.DisableEvent(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Disables the event that have the specified identifier.
public:
bool DisableEvent(int eventId);
public bool DisableEvent (int eventId);
member this.DisableEvent : int -> bool
Public Function DisableEvent (eventId As Integer) As Boolean
Parameters
- eventId
- Int32
The identifier of the event to disable.
Returns
true
if eventId
is in range; otherwise, false
.
Remarks
You can turn off all events in an event listener by calling DisableEvent starting with eventID
= 1 and continuing until DisableEvent returns false
.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.