共用方式為


IVsHTMLConverter.ConvertToEntities(String, UInt32, UInt16[], UInt32) 方法

定義

將字元字串轉換成包含實體參考的字串,例如 “ä” 字元 “ä”。

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

參數

szToConvert
String

[in]要轉換的字串。

cchBuffSize
UInt32

[in]要在其中儲存已轉換字串的緩衝區長度。

szBuffer
UInt16[]

[out]包含已轉換字串的緩衝區。

pcchBuffSizeActual
UInt32

[out]使用之緩衝區的實際大小。

傳回

如果方法成功,它會傳回 S_OK。 如果方法失敗,則會傳回錯誤碼。

備註

COM 簽章

從 vsshell.idl:

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

適用於