Partager via


PlayReadyHeader.FromString(String) Method

Definition

Parses the XML string representation of a header into a PlayReadyHeader.

public static Microsoft.Media.Drm.PlayReadyHeader FromString (string xmlHeader);
static member FromString : string -> Microsoft.Media.Drm.PlayReadyHeader
Public Shared Function FromString (xmlHeader As String) As PlayReadyHeader

Parameters

xmlHeader
String

The full xml representation of of the header.

Returns

A PlayReadyHeader parsed from the xml.

Exceptions

The xmlHeader is null.

The xmlHeader has length zero.

The xmlHeader is an invalid header.

Applies to