EventCommandEventArgs.EnableEvent(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.
Enables the event that has the specified identifier.
public:
bool EnableEvent(int eventId);
public bool EnableEvent (int eventId);
member this.EnableEvent : int -> bool
Public Function EnableEvent (eventId As Integer) As Boolean
Parameters
- eventId
- Int32
The identifier of the event to enable.
Returns
true
if eventId
is in range; otherwise, false
.
Remarks
You can turn on all events in an event listener by calling EnableEvent starting with eventID
= 1 and continuing until EnableEvent returns false
.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.