System.Object[] Arguments { get; set; }

robot_2Generated
code_blocksInput

Description

The Arguments property of the LogEvent struct in the Sandbox namespace provides access to an array of objects that represent the arguments associated with a log event. This property is read-only and is not subject to hotloading, meaning its value is set at the time of the log event creation and cannot be modified thereafter.

Usage

Use the Arguments property to retrieve any additional data that was passed along with the log event. This can be useful for debugging or for providing context to the log message. Since the property is read-only, you cannot modify the arguments after the log event has been created.

Example

// Example of accessing the Arguments property of a LogEvent
LogEvent logEvent = GetLogEvent(); // Assume this method retrieves a LogEvent

// Access the arguments associated with the log event
object[] arguments = logEvent.Arguments;

// Iterate over the arguments and process them
foreach (var arg in arguments)
{
    // Process each argument
    Console.WriteLine(arg);
}