Runtime.OriginalWorkingDirectory Property

Definition

Gets the original working directory used when the application process was launched.

public static string? OriginalWorkingDirectory { get; }
static member OriginalWorkingDirectory : string

Property Value

The original working directory, or null if unavailable.

Remarks

This value is provided by the native runtime and may differ from the current working directory.

Applies to