PathWrapper.IsRooted 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| IsRooted(String) |
确定路径是否包含根路径(例如 UNC 路径或Windows上的驱动器号),或者以 /on Linux 开头(如果路径以 /路径开头)视为 Linux 路径,否则为Windows路径 |
| IsRooted(String, PathType) |
确定路径是否包含根目录,例如 UNC 路径或Windows上的驱动器号,或以 /on Linux 开头 |
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路径