IWebMatrixHost.ShowFolderDialog Method

Applies to v2.

Opens the appropriate folder browsing dialog box, depending on the operating system version.

Namespace:  Microsoft.WebMatrix.Extensibility
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Function ShowFolderDialog ( _
    startFolderPath As String, _
    parentWindow As Window _
) As String
'Usage
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

Parameters

  • startFolderPath
    Type: System.String

    The folder path to start at.

Return Value

Type: System.String
The path to selected folder, if selection succeeded.

See Also

Reference

IWebMatrixHost Interface

Microsoft.WebMatrix.Extensibility Namespace