PathWrapper.GetDirectoryName 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetDirectoryName(String) |
回傳給定路徑的目錄字串。 處理第十一條路線。 這是一個簡單的包裝,所以會是 Garbage-In|垃圾出局。 |
| GetDirectoryName(String, PathType) |
回傳給定路徑的目錄字串。 處理第十一條路線。 這是一個簡單的包裝,所以會是 Garbage-In|垃圾出局。 |
GetDirectoryName(String, PathType)
回傳給定路徑的目錄字串。 處理第十一條路線。 這是一個簡單的包裝,所以會是 Garbage-In|垃圾出局。
public static string GetDirectoryName(string s1, Microsoft.SqlServer.Management.Smo.PathType pathType);
static member GetDirectoryName : string * Microsoft.SqlServer.Management.Smo.PathType -> string
Public Shared Function GetDirectoryName (s1 As String, pathType As PathType) As String
參數
- s1
- String
原始路徑。
- pathType
- PathType
路徑類型。 若未指定,若 s1 以 /開頭,則使用 Linux,否則使用 Windows
傳回
目錄字串