PathWrapper.IsRooted 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| IsRooted(String) |
判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟機代號,或在 Linux 上以 / 開頭;若路徑以 / 開頭,則視為 Linux 路徑,否則視為 Windows 路徑 |
| IsRooted(String, PathType) |
判斷路徑是否包含根節點,例如 Windows 上的 UNC 路徑或磁碟代號,或在 Linux 上以 / 開頭 |
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 路徑