Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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: 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.