Modifier

Partager via


Path.GetPathRoot Method

Definition

Overloads

GetPathRoot(ReadOnlySpan<Char>)
GetPathRoot(String)

GetPathRoot(ReadOnlySpan<Char>)

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

Parameters

Returns

Applies to

GetPathRoot(String)

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

Parameters

path
String

Returns

Applies to