IVsHTMLConverter::ConvertToURLEncoding Method (UInt32, String^, UInt32, array<UInt16>^, UInt32)
Visual Studio 2015
Converts a string substituting URL encoding where needed, such as "%20" for a space.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int ConvertToURLEncoding( unsigned int uCodePage, String^ szToConvert, unsigned int cchBuffSize, array<unsigned short>^ szBuffer, [OutAttribute] unsigned int% pcchBuffSizeActual )
Parameters
- uCodePage
-
Type:
System::UInt32
[in] The code page to use when converting.
- szToConvert
-
Type:
System::String^
[in] String to convert.
- cchBuffSize
-
Type:
System::UInt32
[in] Length of the buffer in which to store the converted string.
- szBuffer
-
Type:
array<System::UInt16>^
[out] The buffer containing the converted string.
- pcchBuffSizeActual
-
Type:
System::UInt32
[out] Actual size of the buffer used.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsHTMLConverter::ConvertToURLEncoding( [in] UINT uCodePage, [in] LPCOLESTR szToConvert, [in] ULONG cchBuffSize, [in, out, size_is(cchBuffSize)] OLECHAR szBuffer[], [out] ULONG *pcchBuffSizeActual );
Show: