Bagikan melalui


IVsBrowseProjectLocation.BrowseProjectLocation Method

Presents a browse dialog box for finding the location of a new project.

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

Syntax

'Declaration
Function BrowseProjectLocation ( _
    pszStartDirectory As String, _
    <OutAttribute> ByRef pbstrProjectLocation As String _
) As Integer
int BrowseProjectLocation(
    string pszStartDirectory,
    out string pbstrProjectLocation
)
int BrowseProjectLocation(
    [InAttribute] String^ pszStartDirectory, 
    [OutAttribute] String^% pbstrProjectLocation
)
abstract BrowseProjectLocation : 
        pszStartDirectory:string * 
        pbstrProjectLocation:string byref -> int 
function BrowseProjectLocation(
    pszStartDirectory : String, 
    pbstrProjectLocation : String
) : int

Parameters

  • pszStartDirectory
    Type: System.String
     [in] String containing the starting directory.
  • pbstrProjectLocation
    Type: System.String%
     [out] String containing the full path to the chosen 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:

C++
HRESULT IVsBrowseProjectLocation::BrowseProjectLocation([in] LPCOLESTR pszStartDirectory, [out] BSTR *pbstrProjectLocation);

.NET Framework Security

See Also

Reference

IVsBrowseProjectLocation Interface

Microsoft.VisualStudio.Shell.Interop Namespace