Compartir a través de


IVsPathVariableResolver.EncodePath Method

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
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: String

    [in] String containing the path to encode.

  • pbstrEncodedPath
    Type: String%

    [out] A pointer to a string containing the encoded 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 vsshell80.idl:

HRESULT IVsPathVariableResolver::EncodePath(
   [in] LPCOLESTR strPath, 
   [in] VSPROFILEPATHRESOLVERFLAGS dwFlags, 
   [out] BSTR *pbstrEncodedPath
);

.NET Framework Security

See Also

Reference

IVsPathVariableResolver Interface

Microsoft.VisualStudio.Shell.Interop Namespace