Share via


RootLicenseContentKey Constructors

Definition

Overloads

RootLicenseContentKey(Byte[], Guid)

Initializes a new instance of the RootLicenseContentKey class. The key is specified by the caller.

RootLicenseContentKey(Guid, Byte[])

Initializes a new instance of the RootLicenseContentKey class. The key is auto-generated by the SDK using a key seed.

RootLicenseContentKey(Byte[], Guid)

Initializes a new instance of the RootLicenseContentKey class. The key is specified by the caller.

public RootLicenseContentKey (byte[] keyBytes, Guid keyId);
new Microsoft.Media.Drm.RootLicenseContentKey : byte[] * Guid -> Microsoft.Media.Drm.RootLicenseContentKey
Public Sub New (keyBytes As Byte(), keyId As Guid)

Parameters

keyBytes
Byte[]

The content key itself.

keyId
Guid

The key identifier for this content key.

Exceptions

Thrown if keyBytes is null.

Thrown if keyId is Empty

Applies to

RootLicenseContentKey(Guid, Byte[])

Initializes a new instance of the RootLicenseContentKey class. The key is auto-generated by the SDK using a key seed.

public RootLicenseContentKey (Guid keyId, byte[] keySeed);
new Microsoft.Media.Drm.RootLicenseContentKey : Guid * byte[] -> Microsoft.Media.Drm.RootLicenseContentKey
Public Sub New (keyId As Guid, keySeed As Byte())

Parameters

keyId
Guid

The key identifier for this content key.

keySeed
Byte[]

The key seed value used to generate the content key.

Exceptions

Thrown if keyId is Empty

Thrown if keySeed is null.

Applies to