# Event

The Event table contains various information about defined events.

# Get event names

Event.get_event_names() -> List[str]

Get a list of event names.

Parameters:

-

Return value:

A list with event names

Example:

# Import class DotNetPE from module dotnetfile
from dotnetfile import DotNetPE

# Create an instance of DotNetPE with the file path as a parameter
dotnet_file = DotNetPE('/Users/<username>/my_dotnet_assembly.exe')

# Check if the "Event" table exists
if dotnet_file.metadata_table_exists('Event'):
    # Get list with event names
    event_names = dotnet_file.Event.get_event_names()

    # Print out the event names
    for event_name in event_names:
        print(f'{event_name}')