Share via


IDeveloperConsoleMessageReceiver::WriteWithUrlAndLine method

Used to log a message from Windows Internet Explorer that also contains the URL and line number.

 

Syntax

HRESULT WriteWithUrlAndLine(
  [in] LPCWSTR                   source,
  [in] DEV_CONSOLE_MESSAGE_LEVEL level,
  [in] int                       messageId,
  [in] LPCWSTR                   messageText,
  [in] LPCWSTR                   fileUrl,
  [in] ULONG                     line
);

Parameters

  • source [in]
    A friendly name for the component in Internet Explorer that logs the message.

  • level [in]
    The level of the message, for example Information, Warning or Error. Must be a value from the DEV_CONSOLE_MESSAGE_LEVEL enum.

  • messageId [in]
    The ID for the message. The messageId is unique for each source.

  • messageText [in]
    The text of the message to be displayed to the user. The text is localized to the Internet Explorer language and might contain RLE and PDF markers in some cases.

  • fileUrl [in]
    The URL relevant to the message. For example, in the case of mixed content warnings, this would be the URL of the HTML file that made the request.

  • line [in]
    The line in the fileUrl that is relevant to the message.

Return value

The return value is ignored.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Mshtml.h

IDL

Mshtml.idl

See also

IDeveloperConsoleMessageReceiver