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
‘선언
Function TranslateEnlistmentPathToProjectPath ( _
lpszEnlistmentPath As String, _
<OutAttribute> ByRef pbstrProjectPath As String _
) As Integer
‘사용 방법
Dim instance As IVsSccEnlistmentPathTranslation
Dim lpszEnlistmentPath As String
Dim pbstrProjectPath As String
Dim returnValue As Integer
returnValue = instance.TranslateEnlistmentPathToProjectPath(lpszEnlistmentPath, _
pbstrProjectPath)
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: 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.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.
See Also
Reference
IVsSccEnlistmentPathTranslation Interface