PathWrapper.IsRooted 方法

定義

多載

名稱 Description
IsRooted(String)

判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟機代號,或在 Linux 上以 / 開頭;若路徑以 / 開頭,則視為 Linux 路徑,否則視為 Windows 路徑

IsRooted(String, PathType)

判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟代號,或在 Linux 上以 / 開頭

IsRooted(String)

判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟機代號,或在 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)

判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟代號,或在 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 路徑

傳回

適用於