IVsSccEnlistmentPathTranslation::TranslateProjectPathToEnlistmentPath Method (String^, String^, String^)

 

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

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

int TranslateProjectPathToEnlistmentPath(
	String^ lpszProjectPath,
	[OutAttribute] String^% pbstrEnlistmentPath,
	[OutAttribute] String^% pbstrEnlistmentPathUNC
)

Parameters

lpszProjectPath
Type: System::String^

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

pbstrEnlistmentPath
Type: System::String^

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

pbstrEnlistmentPathUNC
Type: System::String^

[out] The path used by the source control system for managing the enlistment ("\\drive\path", "[drive]:\path", "file://server/path").

Return Value

Type: System::Int32

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

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.

Return to top
Show: