Método IVsSccEnlistmentPathTranslation.TranslateEnlistmentPathToProjectPath (String, String)

 

Converte um caminho físico do projeto para um caminho virtual (possivelmente) do projeto.

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

Sintaxe

int TranslateEnlistmentPathToProjectPath(
    string lpszEnlistmentPath,
    out string pbstrProjectPath
)
int TranslateEnlistmentPathToProjectPath(
    String^ lpszEnlistmentPath,
    [OutAttribute] String^% pbstrProjectPath
)
abstract TranslateEnlistmentPathToProjectPath : 
        lpszEnlistmentPath:string *
        pbstrProjectPath:string byref -> int
Function TranslateEnlistmentPathToProjectPath (
    lpszEnlistmentPath As String,
    <OutAttribute> ByRef pbstrProjectPath As String
) As Integer

Parâmetros

  • lpszEnlistmentPath
    [in] O caminho físico (o caminho local ou o caminho UNC de inscrição) a ser traduzido.
  • pbstrProjectPath
    [out] O caminho virtual (possivelmente) do projeto.

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 TranslateEnlistmentPathToProjectPath(
   [in] LPCOLESTR lpszEnlistmentPath,
   [out, retval] BSTR * pbstrProjectPath
);

Para ir de um caminho virtual (possivelmente) do projeto para um caminho de inscrição (e caminho local), use o TranslateEnlistmentPathToProjectPath método.

Consulte também

Interface IVsSccEnlistmentPathTranslation
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo