Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
'Usage
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