Modifier

Partager via


Path.GetDirectoryName Method

Definition

Overloads

GetDirectoryName(ReadOnlySpan<Char>)
GetDirectoryName(String)

GetDirectoryName(ReadOnlySpan<Char>)

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

Parameters

Returns

Applies to

GetDirectoryName(String)

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

Parameters

path
String

Returns

Applies to