編輯

共用方式為


Path.HasExtension Method

Definition

Overloads

HasExtension(ReadOnlySpan<Char>)
HasExtension(String)

HasExtension(ReadOnlySpan<Char>)

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

Parameters

Returns

Applies to

HasExtension(String)

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

Parameters

path
String

Returns

Applies to