DomainIdentifier Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DomainIdentifier() |
Initializes a new instance of the DomainIdentifier class. |
DomainIdentifier(Guid) |
Initializes a new instance of the DomainIdentifier class with the given service identifier. An account identifier is randomly generated and the revision is set to CurrentRevision. |
DomainIdentifier(Guid, Guid) |
Initializes a new instance of the DomainIdentifier class with the given service identifier and account identifier. The revision is set to CurrentRevision. |
DomainIdentifier(Guid, Guid, DateTime) |
Initializes a new instance of the DomainIdentifier class with the given service identifier, account identifier, and revision represented as a time stamp. |
DomainIdentifier(Guid, Guid, Int64) |
Initializes a new instance of the DomainIdentifier class with the given service identifier, account identifier, and revision represented as a long. |
DomainIdentifier()
Initializes a new instance of the DomainIdentifier class.
public DomainIdentifier ();
Public Sub New ()
Applies to
DomainIdentifier(Guid)
Initializes a new instance of the DomainIdentifier class with the given service identifier. An account identifier is randomly generated and the revision is set to CurrentRevision.
public DomainIdentifier (Guid serviceId);
new Microsoft.Media.Drm.DomainIdentifier : Guid -> Microsoft.Media.Drm.DomainIdentifier
Public Sub New (serviceId As Guid)
Parameters
- serviceId
- Guid
The unique identifier of the service to which the domain belongs.
Applies to
DomainIdentifier(Guid, Guid)
Initializes a new instance of the DomainIdentifier class with the given service identifier and account identifier. The revision is set to CurrentRevision.
public DomainIdentifier (Guid serviceId, Guid accountId);
new Microsoft.Media.Drm.DomainIdentifier : Guid * Guid -> Microsoft.Media.Drm.DomainIdentifier
Public Sub New (serviceId As Guid, accountId As Guid)
Parameters
- serviceId
- Guid
The unique identifier of the service to which the domain belongs.
- accountId
- Guid
The unique identifier of the account within the service.
Applies to
DomainIdentifier(Guid, Guid, DateTime)
Initializes a new instance of the DomainIdentifier class with the given service identifier, account identifier, and revision represented as a time stamp.
public DomainIdentifier (Guid serviceId, Guid accountId, DateTime revisionTimestamp);
new Microsoft.Media.Drm.DomainIdentifier : Guid * Guid * DateTime -> Microsoft.Media.Drm.DomainIdentifier
Public Sub New (serviceId As Guid, accountId As Guid, revisionTimestamp As DateTime)
Parameters
- serviceId
- Guid
The unique identifier of the service to which the domain belongs.
- accountId
- Guid
The unique identifier of the account within the service.
- revisionTimestamp
- DateTime
The version of the domain to which this identifier refers.
Applies to
DomainIdentifier(Guid, Guid, Int64)
Initializes a new instance of the DomainIdentifier class with the given service identifier, account identifier, and revision represented as a long.
public DomainIdentifier (Guid serviceId, Guid accountId, long revision);
new Microsoft.Media.Drm.DomainIdentifier : Guid * Guid * int64 -> Microsoft.Media.Drm.DomainIdentifier
Public Sub New (serviceId As Guid, accountId As Guid, revision As Long)
Parameters
- serviceId
- Guid
The unique identifier of the service to which the domain belongs.
- accountId
- Guid
The unique identifier of the account within the service.
- revision
- Int64
The version of the domain to which this identifier refers.
Exceptions
Thrown if revision
is less than MinRevision
or greater than MaxRevision.