EntryWrittenEventHandler Delegát
Definice
Představuje metodu, která zpracuje EntryWritten událost EventLog .Represents the method that will handle the EntryWritten event of an EventLog.
public delegate void EntryWrittenEventHandler(System::Object ^ sender, EntryWrittenEventArgs ^ e);
public delegate void EntryWrittenEventHandler(object sender, EntryWrittenEventArgs e);
type EntryWrittenEventHandler = delegate of obj * EntryWrittenEventArgs -> unit
Public Delegate Sub EntryWrittenEventHandler(sender As Object, e As EntryWrittenEventArgs)
Parametry
- sender
- Object
Zdroj událostiThe source of the event.
Obsahující EntryWrittenEventArgs data události.An EntryWrittenEventArgs that contains the event data.
Poznámky
Při vytváření EntryWrittenEventHandler delegáta identifikujete metodu, která událost zpracuje.When you create an EntryWrittenEventHandler delegate, you identify the method that will handle the event. Chcete-li přidružit událost k obslužné rutině události, přidejte do události instanci delegáta.To associate the event with your event handler, add an instance of the delegate to the event. Obslužná rutina události je volána při každém výskytu události, dokud neodeberete delegáta.The event handler is called whenever the event occurs, unless you remove the delegate. Další informace o delegátech obslužných rutin událostí naleznete v tématu manipulace a vyvolávání událostí.For more information about event handler delegates, see Handling and Raising Events.
Metody rozšíření
GetMethodInfo(Delegate) |
Získává objekt, který představuje metodu reprezentovanou zadaným delegátem.Gets an object that represents the method represented by the specified delegate. |