Método IVsSccEnlistmentPathTranslation.TranslateProjectPathToEnlistmentPath (String, String, String)

 

Converte um caminho de projeto possivelmente virtual para um caminho local e um caminho físico da inscrição.

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

Sintaxe

int TranslateProjectPathToEnlistmentPath(
    string lpszProjectPath,
    out string pbstrEnlistmentPath,
    out string pbstrEnlistmentPathUNC
)
int TranslateProjectPathToEnlistmentPath(
    String^ lpszProjectPath,
    [OutAttribute] String^% pbstrEnlistmentPath,
    [OutAttribute] String^% pbstrEnlistmentPathUNC
)
abstract TranslateProjectPathToEnlistmentPath : 
        lpszProjectPath:string *
        pbstrEnlistmentPath:string byref *
        pbstrEnlistmentPathUNC:string byref -> int
Function TranslateProjectPathToEnlistmentPath (
    lpszProjectPath As String,
    <OutAttribute> ByRef pbstrEnlistmentPath As String,
    <OutAttribute> ByRef pbstrEnlistmentPathUNC As String
) As Integer

Parâmetros

  • lpszProjectPath
    [in] O caminho do projeto (possivelmente) virtual como obtido do arquivo de solução.
  • pbstrEnlistmentPath
    [out] O caminho local utilizado pela solução para carregar e salvar o projeto.
  • pbstrEnlistmentPathUNC
    [out] The path used by the source control system for managing the enlistment ("\\drive\path", "drive:\path", "file://server/path").

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De ivssccenlistmentpathtranslation.idl

HRESULT TranslateProjectPathToEnlistmentPath(
   [in] LPCOLESTR lpszProjectPath,
   [out] BSTR * pbstrEnlistmentPath,
   [out] BSTR * pbstrEnlistmentPathUNC
);

Para ir de um caminho de inscrição para um caminho de projeto, use o TranslateEnlistmentPathToProjectPath método.

Consulte também

Interface IVsSccEnlistmentPathTranslation
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo