语言

PathWrapper.IsRooted 方法

定义

重载

名称 说明
IsRooted(String)

确定路径是否包含根路径(例如 UNC 路径或Windows上的驱动器号),或者以 /on Linux 开头(如果路径以 /路径开头)视为 Linux 路径,否则为Windows路径

IsRooted(String, PathType)

确定路径是否包含根目录,例如 UNC 路径或Windows上的驱动器号,或以 /on Linux 开头

IsRooted(String)

确定路径是否包含根路径(例如 UNC 路径或Windows上的驱动器号),或者以 /on Linux 开头(如果路径以 /路径开头)视为 Linux 路径,否则为Windows路径

public static bool IsRooted(string path);
static member IsRooted : string -> bool
Public Shared Function IsRooted (path As String) As Boolean

参数

path
String

返回

适用于

IsRooted(String, PathType)

确定路径是否包含根目录,例如 UNC 路径或Windows上的驱动器号,或以 /on Linux 开头

public static bool IsRooted(string path, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member IsRooted : string * Microsoft.SqlServer.Management.Smo.PathType -> bool
Public Shared Function IsRooted (path As String, pathType As PathType) As Boolean

参数

path
String
pathType
PathType

路径的类型。 如果设置为“未指定” - 如果路径以 /路径开头,则路径被视为 Linux 路径,否则为Windows路径

返回

适用于