IVsSccEnlistmentPathTranslation::TranslateEnlistmentPathToProjectPath Method (String^, String^)
Visual Studio 2015
Translates a physical project path to a (possibly) virtual project path.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int TranslateEnlistmentPathToProjectPath(
String^ lpszEnlistmentPath,
[OutAttribute] String^% pbstrProjectPath
)
Parameters
- lpszEnlistmentPath
-
Type:
System::String^
[in] The physical path (either the local path or the enlistment UNC path) to be translated.
- pbstrProjectPath
-
Type:
System::String^
[out] The (possibly) virtual project path.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From ivssccenlistmentpathtranslation.idl
HRESULT TranslateEnlistmentPathToProjectPath(
[in] LPCOLESTR lpszEnlistmentPath,
[out, retval] BSTR * pbstrProjectPath
);
To go from a (possibly) virtual project path to an enlistment path (and local path), use the TranslateEnlistmentPathToProjectPath method.
Show: