Freigeben über


IVsSccEnlistmentPathTranslation.TranslateEnlistmentPathToProjectPath Method

Definition

Translates a physical project path to a (possibly) virtual project path.

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

Parameters

lpszEnlistmentPath
String

[in] The physical path (either the local path or the enlistment UNC path) to be translated.

pbstrProjectPath
String

[out] The (possibly) virtual project 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 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.

Applies to