Partager via


MediaElement.RequestLog Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Sends a request to generate a log which will then be raised through the LogReady event.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Sub RequestLog
public void RequestLog()

Remarks

NoteNote:

This method only works with progressive downloads.

Request log sends a request to generate a log which will then be raised through the LogReady event. Logs generated by the RequestLog method and raised through the LogReady method are never automatically sent to the server. These logs must be handled by application developers.

Below summarizes what this method does depending on the current state of the media:

  • Closed: No operation.

  • Opening: Queues the request and raises the log when the MediaOpened event is raised.

  • Individualizing: Generates the log.

  • AcquiringLicense: Generates the log.

  • Buffering: Generates the log.

  • Playing: Generates the log.

  • Paused: Generates the log.

  • Stopped: Generates the log.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.