Partager via


PlayReadyHeader.GetAttribute Method

Definition

Overloads

GetAttribute(Int32)

Gets the attribute at the specified index.

GetAttribute(String)

Gets the attribute with the specified name.

GetAttribute(Int32)

Gets the attribute at the specified index.

public Microsoft.Media.Drm.PlayReadyHeaderAttribute GetAttribute (int index);
member this.GetAttribute : int -> Microsoft.Media.Drm.PlayReadyHeaderAttribute
Public Function GetAttribute (index As Integer) As PlayReadyHeaderAttribute

Parameters

index
Int32

The index of the attribute to get.

Returns

The PlayReadyHeaderAttribute at the specified index.

Exceptions

The index is less than zero or greater than or equal to AttributeCount.

Applies to

GetAttribute(String)

Gets the attribute with the specified name.

public Microsoft.Media.Drm.PlayReadyHeaderAttribute GetAttribute (string name);
member this.GetAttribute : string -> Microsoft.Media.Drm.PlayReadyHeaderAttribute
Public Function GetAttribute (name As String) As PlayReadyHeaderAttribute

Parameters

name
String

The name of attribute.

Returns

The PlayReadyHeaderAttribute of the header or null if the attribute is not present.

Applies to