IVsHTMLConverter::ConvertFromEntities Method (String^, UInt32, array<UInt16>^, UInt32)

 

Converts entity references in a string to characters.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int ConvertFromEntities(
	String^ szToConvert,
	unsigned int cchBuffSize,
	array<unsigned short>^ szBuffer,
	[OutAttribute] unsigned int% pcchBuffSizeActual
)

Parameters

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

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

From vsshell.idl:

HRESULT IVsHTMLConverter::ConvertFromEntities(
   [in] LPCOLESTR szToConvert, 
   [in] ULONG cchBuffSize, 
   [in, out, size_is(cchBuffSize)] OLECHAR szBuffer[], 
   [out] ULONG *pcchBuffSizeActual
);
Return to top
Show: