다음을 통해 공유


IVsSccProjectProviderBinding.BrowseServerPath Method

Displays a browse dialog box so that the user can browse for a source control server location.

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

Syntax

‘선언
Function BrowseServerPath ( _
    lpszServerPath As String, _
    <OutAttribute> ByRef pbstrNewServerPath As String _
) As Integer
‘사용 방법
Dim instance As IVsSccProjectProviderBinding
Dim lpszServerPath As String
Dim pbstrNewServerPath As String
Dim returnValue As Integer

returnValue = instance.BrowseServerPath(lpszServerPath, _
    pbstrNewServerPath)
int BrowseServerPath(
    string lpszServerPath,
    out string pbstrNewServerPath
)
int BrowseServerPath(
    [InAttribute] String^ lpszServerPath, 
    [OutAttribute] String^% pbstrNewServerPath
)
abstract BrowseServerPath : 
        lpszServerPath:string * 
        pbstrNewServerPath:string byref -> int 
function BrowseServerPath(
    lpszServerPath : String, 
    pbstrNewServerPath : String
) : int

Parameters

  • lpszServerPath
    Type: System.String
    [in] The server path to start from (based on the user's latest edits).
  • pbstrNewServerPath
    Type: System.String%
    [out] Returns the new enlistment path (local system path).

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. It returns S_FALSE if the browse dialog box was canceled. If it fails, this method returns an error code (a typical error code is E_NOTIMPL, indicating that the method is not supported although the rest of the interface may be).

Remarks

COM Signature

From ivssccprojectproviderbinding.idl

HRESULT BrowseServerPath(
   [in] LPCOLESTR lpszServerPath,
   [out, retval] BSTR * pbstrNewServerPath
);

If this method is supported, then the GetProviderBindingOptions method should return the VSSCC_PBO_CANBROWSESERVERPATH flag (one of the __VSSCCPROVIDERBINDINGOPTIONS values).

.NET Framework Security

See Also

Reference

IVsSccProjectProviderBinding Interface

IVsSccProjectProviderBinding Members

Microsoft.VisualStudio.Shell.Interop Namespace