ConfigurationPath.GetParentPath(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取對應於某條路徑的父節點路徑。
public:
static System::String ^ GetParentPath(System::String ^ path);
public static string? GetParentPath(string? path);
static member GetParentPath : string -> string
Public Shared Function GetParentPath (path As String) As String
參數
- path
- String
路徑。
傳回
原始路徑,去除最後一個單獨的路段。 若原始路徑對應頂層節點,則為空。