Path.PathSeparator Field


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

A platform-specific separator character used to separate path strings in environment variables.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)

static val PathSeparator : char

Field Value

Type: System.Char

On Windows-based desktop platforms, the value of this field is the semicolon (;) by default, but might vary on other platforms.

The following code example demonstrates the use of the PathSeparator field.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top