共用方式為


RaiseEvent 

Raises an event at run time, or declares what code to execute when raising an event.

Remarks

The RaiseEvent keyword can be used in these contexts:

  • Event Statement
    The RaiseEvent keyword declares a custom RaiseEvent accessor.

See Also

Tasks

How to: Raise an Event (Visual Basic)
How to: Declare Events That Avoid Blocking
How to: Declare Events That Conserve Memory Use