共用方式為


IWebMatrixHost.ShowFolderDialog 方法

適用於版本2

根據作業系統版本,開啟適當的資料夾瀏覽對話方塊。

命名空間:  Microsoft.WebMatrix.Extensibility
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Function ShowFolderDialog ( _
    startFolderPath As String, _
    parentWindow As Window _
) As String
'用途
Dim instance As IWebMatrixHost 
Dim startFolderPath As String 
Dim parentWindow As Window 
Dim returnValue As String 

returnValue = instance.ShowFolderDialog(startFolderPath, _
    parentWindow)
string ShowFolderDialog(
    string startFolderPath,
    Window parentWindow
)
String^ ShowFolderDialog(
    String^ startFolderPath, 
    Window^ parentWindow
)
abstract ShowFolderDialog : 
        startFolderPath:string * 
        parentWindow:Window -> string
function ShowFolderDialog(
    startFolderPath : String, 
    parentWindow : Window
) : String

參數

  • startFolderPath
    型別:System.String

    要從該處開始的資料夾路徑。

傳回值

型別:System.String
如果選取項目成功,則為所選取資料夾的路徑。

請參閱

參考

IWebMatrixHost 介面

Microsoft.WebMatrix.Extensibility 命名空間