編輯

共用方式為


Path.TrimEndingDirectorySeparator Method

Definition

Overloads

TrimEndingDirectorySeparator(ReadOnlySpan<Char>)
TrimEndingDirectorySeparator(String)

TrimEndingDirectorySeparator(ReadOnlySpan<Char>)

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

Returns

Applies to

TrimEndingDirectorySeparator(String)

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

Returns

Applies to