    

 ## On this page

  

 

 # Class WriteEventArgs

 Last update: 09.03.2026 

Namespace: [OpenTD.UserInterface](OpenTD.UserInterface.md)  
Assembly: OpenTD.dll

Used by the StandardOutput.OnWrite event to route StandardOutput to a custom destination.

```csharp
public class WriteEventArgs : EventArgs

```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs) ← [WriteEventArgs](OpenTD.UserInterface.WriteEventArgs.md)

## Inherited Members

[EventArgs.Empty](https://learn.microsoft.com/dotnet/api/system.eventargs.empty), [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring), [object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)), [object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)), [object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals), [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode), [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype), [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### WriteEventArgs(string)

```csharp
public WriteEventArgs(string msg)

```

#### Parameters

`msg` [string](https://learn.microsoft.com/dotnet/api/system.string)

## Properties

### Message

```csharp
public string Message { get; set; }

```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### ToString()

Returns a string that represents the current object.

```csharp
public override string ToString()

```

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string that represents the current object.

## See Also

[EventArgs](https://learn.microsoft.com/dotnet/api/system.eventargs)