IVsSccEnlistmentPathTranslation.TranslateEnlistmentPathToProjectPath Method
Translates a physical project path to a (possibly) virtual project path.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function TranslateEnlistmentPathToProjectPath ( _
lpszEnlistmentPath As String, _
<OutAttribute> ByRef pbstrProjectPath As String _
) As Integer
int TranslateEnlistmentPathToProjectPath(
string lpszEnlistmentPath,
out string pbstrProjectPath
)
int TranslateEnlistmentPathToProjectPath(
[InAttribute] String^ lpszEnlistmentPath,
[OutAttribute] String^% pbstrProjectPath
)
abstract TranslateEnlistmentPathToProjectPath :
lpszEnlistmentPath:string *
pbstrProjectPath:string byref -> int
function TranslateEnlistmentPathToProjectPath(
lpszEnlistmentPath : String,
pbstrProjectPath : String
) : int
Parameters
lpszEnlistmentPath
Type: String[in] The physical path (either the local path or the enlistment UNC path) to be translated.
pbstrProjectPath
Type: String%[out] The (possibly) virtual project path.
Return Value
Type: Int32
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.