Environment.ProcessPath Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the path of the executable that started the currently executing process. Returns null
when the path is not available.
public:
static property System::String ^ ProcessPath { System::String ^ get(); };
public static string? ProcessPath { get; }
static member ProcessPath : string
Public Shared ReadOnly Property ProcessPath As String
The path of the executable that started the currently executing process.
If the executable is renamed or deleted before this property is first accessed, the return value is undefined and depends on the operating system.
Produkt | Verze |
---|---|
.NET | 6, 7, 8, 9 |
Zpětná vazba k produktu .NET
.NET je open source projekt. Vyberte odkaz pro poskytnutí zpětné vazby: