Breyta

Deila með


Path.TrimEndingDirectorySeparator Method

Definition

Overloads

TrimEndingDirectorySeparator(ReadOnlySpan<Char>)

Trims one trailing directory separator beyond the root of the specified path.

TrimEndingDirectorySeparator(String)

Trims one trailing directory separator beyond the root of the specified path.

TrimEndingDirectorySeparator(ReadOnlySpan<Char>)

Source:
Path.cs
Source:
Path.cs
Source:
Path.cs

Trims one trailing directory separator beyond the root of the specified path.

public:
 static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path);
public static ReadOnlySpan<char> TrimEndingDirectorySeparator (ReadOnlySpan<char> path);
static member TrimEndingDirectorySeparator : ReadOnlySpan<char> -> ReadOnlySpan<char>
Public Shared Function TrimEndingDirectorySeparator (path As ReadOnlySpan(Of Char)) As ReadOnlySpan(Of Char)

Parameters

path
ReadOnlySpan<Char>

The path to trim.

Returns

The path without any trailing directory separators.

Applies to

TrimEndingDirectorySeparator(String)

Source:
Path.cs
Source:
Path.cs
Source:
Path.cs

Trims one trailing directory separator beyond the root of the specified path.

public:
 static System::String ^ TrimEndingDirectorySeparator(System::String ^ path);
public static string TrimEndingDirectorySeparator (string path);
static member TrimEndingDirectorySeparator : string -> string
Public Shared Function TrimEndingDirectorySeparator (path As String) As String

Parameters

path
String

The path to trim.

Returns

The path without any trailing directory separators.

Applies to