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
'宣言
Function BrowseProjectLocation ( _
pszStartDirectory As String, _
<OutAttribute> ByRef pbstrProjectLocation As String _
) As Integer
'使用
Dim instance As IVsBrowseProjectLocation
Dim pszStartDirectory As String
Dim pbstrProjectLocation As String
Dim returnValue As Integer
returnValue = instance.BrowseProjectLocation(pszStartDirectory, _
pbstrProjectLocation)
int BrowseProjectLocation(
string pszStartDirectory,
out string pbstrProjectLocation
)
int BrowseProjectLocation(
[InAttribute] String^ pszStartDirectory,
[OutAttribute] String^% pbstrProjectLocation
)
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);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsBrowseProjectLocation Interface