Udostępnij za pośrednictwem


Metoda IVsSccEnlistmentPathTranslation.TranslateEnlistmentPathToProjectPath — (String, String)

 

Tłumaczy projekt fizycznej ścieżki do ścieżki wirtualnej (ewentualnie) projektu.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

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

Parametry

  • lpszEnlistmentPath
    [w] Ścieżka fizyczna (ścieżka lokalna lub ścieżka UNC rejestracja) mają być tłumaczone.
  • pbstrProjectPath
    [out] Ścieżki wirtualnej (ewentualnie) projektu.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z ivssccenlistmentpathtranslation.idl

HRESULT TranslateEnlistmentPathToProjectPath(
   [in] LPCOLESTR lpszEnlistmentPath,
   [out, retval] BSTR * pbstrProjectPath
);

Aby przejść od ścieżki wirtualnej (ewentualnie) projektu do rejestracji (lokalnej ścieżce i), należy użyć TranslateEnlistmentPathToProjectPath metody.

Zobacz też

Interfejs IVsSccEnlistmentPathTranslation
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku