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.
Encodes a file path by replacing the installation directory and the user application data directory with the strings %VS_INSTALL_DIRECTORY% and %USER_APPDATA% respectively.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function EncodePath ( _
strPath As String, _
dwFlags As UInteger, _
<OutAttribute> ByRef pbstrEncodedPath As String _
) As Integer
'Usage
Dim instance As IVsPathVariableResolver
Dim strPath As String
Dim dwFlags As UInteger
Dim pbstrEncodedPath As String
Dim returnValue As Integer
returnValue = instance.EncodePath(strPath, _
dwFlags, pbstrEncodedPath)
int EncodePath(
string strPath,
uint dwFlags,
out string pbstrEncodedPath
)
int EncodePath(
[InAttribute] String^ strPath,
[InAttribute] unsigned int dwFlags,
[OutAttribute] String^% pbstrEncodedPath
)
abstract EncodePath :
strPath:string *
dwFlags:uint32 *
pbstrEncodedPath:string byref -> int
function EncodePath(
strPath : String,
dwFlags : uint,
pbstrEncodedPath : String
) : int
Parameters
- strPath
Type: System.String
[in] String containing the path to encode.
- dwFlags
Type: System.UInt32
[in] Encoding option flag. A value from the __VSPROFILEPATHRESOLVERFLAGS enumeration.
- pbstrEncodedPath
Type: System.String%
[out] A pointer to a string containing the encoded 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 vsshell80.idl:
HRESULT IVsPathVariableResolver::EncodePath(
[in] LPCOLESTR strPath,
[in] VSPROFILEPATHRESOLVERFLAGS dwFlags,
[out] BSTR *pbstrEncodedPath
);
.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
IVsPathVariableResolver Interface