Path.EndsInDirectorySeparator 方法

定义

重载

EndsInDirectorySeparator(ReadOnlySpan<Char>)

返回一个值,该值指示指定为只读范围的路径是否以目录分隔符结尾。

EndsInDirectorySeparator(String)

返回一个值,该值指示指定的路径是否以目录分隔符结尾。

EndsInDirectorySeparator(ReadOnlySpan<Char>)

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

返回一个值,该值指示指定为只读范围的路径是否以目录分隔符结尾。

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

参数

path
ReadOnlySpan<Char>

要分析的路径。

返回

如果该路径以目录分隔符结尾,则为 true;否则为 false

适用于

EndsInDirectorySeparator(String)

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

返回一个值,该值指示指定的路径是否以目录分隔符结尾。

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

参数

path
String

要分析的路径。

返回

如果该路径以目录分隔符结尾,则为 true;否则为 false

适用于