IVsHTMLConverter.ConvertFromURLEncoding Method

Definition

Converts a string from URL encoding (such as using %20 for space) to characters.

public:
 int ConvertFromURLEncoding(System::UInt32 uCodePage, System::String ^ szToConvert, System::UInt32 cchBuffSize, cli::array <System::UInt16> ^ szBuffer, [Runtime::InteropServices::Out] System::UInt32 % pcchBuffSizeActual);
int ConvertFromURLEncoding(unsigned int uCodePage, std::wstring const & szToConvert, unsigned int cchBuffSize, std::Array <unsigned short> const & szBuffer, [Runtime::InteropServices::Out] unsigned int & pcchBuffSizeActual);
public int ConvertFromURLEncoding (uint uCodePage, string szToConvert, uint cchBuffSize, ushort[] szBuffer, out uint pcchBuffSizeActual);
abstract member ConvertFromURLEncoding : uint32 * string * uint32 * uint16[] * uint32 -> int
Public Function ConvertFromURLEncoding (uCodePage As UInteger, szToConvert As String, cchBuffSize As UInteger, szBuffer As UShort(), ByRef pcchBuffSizeActual As UInteger) As Integer

Parameters

uCodePage
UInt32

[in] The code page to use when converting to characters.

szToConvert
String

[in] String to convert.

cchBuffSize
UInt32

[in] Length of the buffer in which to store the converted string.

szBuffer
UInt16[]

[out] The buffer containing the converted string.

pcchBuffSizeActual
UInt32

[out] Pointer to the actual size of the buffer used.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsHTMLConverter::ConvertFromURLEncoding(  
   [in] UINT uCodePage,   
   [in] LPCOLESTR szToConvert,   
   [in] ULONG cchBuffSize,   
   [in, out, size_is(cchBuffSize)] OLECHAR szBuffer[],   
   [out] ULONG *pcchBuffSizeActual  
);  

Applies to