Share via


IVsSccEnlistmentPathTranslation.TranslateProjectPathToEnlistmentPath Method

Definition

Translates a possibly virtual project path to a local path and an enlistment physical path.

public:
 int TranslateProjectPathToEnlistmentPath(System::String ^ lpszProjectPath, [Runtime::InteropServices::Out] System::String ^ % pbstrEnlistmentPath, [Runtime::InteropServices::Out] System::String ^ % pbstrEnlistmentPathUNC);
int TranslateProjectPathToEnlistmentPath(std::wstring const & lpszProjectPath, [Runtime::InteropServices::Out] std::wstring const & & pbstrEnlistmentPath, [Runtime::InteropServices::Out] std::wstring const & & pbstrEnlistmentPathUNC);
public int TranslateProjectPathToEnlistmentPath (string lpszProjectPath, out string pbstrEnlistmentPath, out string pbstrEnlistmentPathUNC);
abstract member TranslateProjectPathToEnlistmentPath : string * string * string -> int
Public Function TranslateProjectPathToEnlistmentPath (lpszProjectPath As String, ByRef pbstrEnlistmentPath As String, ByRef pbstrEnlistmentPathUNC As String) As Integer

Parameters

lpszProjectPath
String

[in] The project's (possibly) virtual path as obtained from the solution file.

pbstrEnlistmentPath
String

[out] The local path used by the solution for loading and saving the project.

pbstrEnlistmentPathUNC
String

[out] The path used by the source control system for managing the enlistment ("\drive<code data-dev-comment-type="paramref">path", "[drive]:<code data-dev-comment-type="paramref">path", "file://server/path").

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From ivssccenlistmentpathtranslation.idl

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

To go from an enlistment path to a project path, use the TranslateEnlistmentPathToProjectPath method.

Applies to