Compartir a través de


IVsHTMLConverter.ConvertFromEntities Method

Converts entity references in a string to characters.

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

Syntax

'Declaration
Function ConvertFromEntities ( _
    szToConvert As String, _
    cchBuffSize As UInteger, _
    <OutAttribute> szBuffer As UShort(), _
    <OutAttribute> ByRef pcchBuffSizeActual As UInteger _
) As Integer
int ConvertFromEntities(
    string szToConvert,
    uint cchBuffSize,
    ushort[] szBuffer,
    out uint pcchBuffSizeActual
)
int ConvertFromEntities(
    [InAttribute] String^ szToConvert, 
    [InAttribute] unsigned int cchBuffSize, 
    [OutAttribute] array<unsigned short>^ szBuffer, 
    [OutAttribute] unsigned int% pcchBuffSizeActual
)
abstract ConvertFromEntities : 
        szToConvert:string * 
        cchBuffSize:uint32 * 
        szBuffer:uint16[] byref * 
        pcchBuffSizeActual:uint32 byref -> int
function ConvertFromEntities(
    szToConvert : String, 
    cchBuffSize : uint, 
    szBuffer : ushort[], 
    pcchBuffSizeActual : uint
) : int

Parameters

  • szToConvert
    Type: String

    [in] String to convert.

  • cchBuffSize
    Type: UInt32

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

  • szBuffer
    Type: array<UInt16[]

    [out] The buffer containing the converted string.

  • pcchBuffSizeActual
    Type: UInt32%

    [out] Actual size of the buffer used.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsHTMLConverter Interface

Microsoft.VisualStudio.Shell.Interop Namespace