다음을 통해 공유


IVsUIShell2.GetDirectoryViaBrowseDlgEx Method

Brings up the Browse dialog box to obtain a directory name (possibly in a namespace extension).

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

‘선언
Function GetDirectoryViaBrowseDlgEx ( _
    <OutAttribute> pBrowse As VSBROWSEINFOW(), _
    pszHelpTopic As String, _
    pszOpenButtonLabel As String, _
    pszCeilingDir As String, _
    pNSEBrowseInfo As VSNSEBROWSEINFOW() _
) As Integer
‘사용 방법
Dim instance As IVsUIShell2
Dim pBrowse As VSBROWSEINFOW()
Dim pszHelpTopic As String
Dim pszOpenButtonLabel As String
Dim pszCeilingDir As String
Dim pNSEBrowseInfo As VSNSEBROWSEINFOW()
Dim returnValue As Integer

returnValue = instance.GetDirectoryViaBrowseDlgEx(pBrowse, _
    pszHelpTopic, pszOpenButtonLabel, _
    pszCeilingDir, pNSEBrowseInfo)
int GetDirectoryViaBrowseDlgEx(
    VSBROWSEINFOW[] pBrowse,
    string pszHelpTopic,
    string pszOpenButtonLabel,
    string pszCeilingDir,
    VSNSEBROWSEINFOW[] pNSEBrowseInfo
)
int GetDirectoryViaBrowseDlgEx(
    [InAttribute] [OutAttribute] array<VSBROWSEINFOW>^ pBrowse, 
    [InAttribute] String^ pszHelpTopic, 
    [InAttribute] String^ pszOpenButtonLabel, 
    [InAttribute] String^ pszCeilingDir, 
    [InAttribute] array<VSNSEBROWSEINFOW>^ pNSEBrowseInfo
)
abstract GetDirectoryViaBrowseDlgEx : 
        pBrowse:VSBROWSEINFOW[] byref * 
        pszHelpTopic:string * 
        pszOpenButtonLabel:string * 
        pszCeilingDir:string * 
        pNSEBrowseInfo:VSNSEBROWSEINFOW[] -> int 
function GetDirectoryViaBrowseDlgEx(
    pBrowse : VSBROWSEINFOW[], 
    pszHelpTopic : String, 
    pszOpenButtonLabel : String, 
    pszCeilingDir : String, 
    pNSEBrowseInfo : VSNSEBROWSEINFOW[]
) : int

Parameters

  • pszHelpTopic
    Type: System.String
    [in] A string containing the help topic. This overrides the dwHelpTopic parameter in VSBROWSEINFOW structure.
  • pszOpenButtonLabel
    Type: System.String
    [in] Caption text for the Open button.
  • pszCeilingDir
    Type: System.String
    [in] Limit browsing to below this location.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell80.idl:

HRESULT IVsUIShell2::GetDirectoryViaBrowseDlgEx(
   [in,out] VSBROWSEINFOW     *pBrowse,
   [in]     LPCOLESTR          pszHelpTopic,
   [in]     LPCOLESTR          pszOpenButtonLabel,
   [in]     LPCOLESTR          pszCeilingDir,
   [in]     VSNSEBROWSEINFOW  *pNSEBrowseInfo
);

.NET Framework Security

See Also

Reference

IVsUIShell2 Interface

IVsUIShell2 Members

Microsoft.VisualStudio.Shell.Interop Namespace