다음을 통해 공유


AdvancedLicense.BeginDate Property

Definition

Gets or sets the date and time before which the license is not valid.

public DateTime BeginDate { get; set; }
member this.BeginDate : DateTime with get, set
Public Property BeginDate As DateTime

Property Value

The date and time before which the license is not valid.

Examples

private void SetBeginDateToNow(ILicenseChallenge challenge, AdvancedLicense license)
{
    license.BeginDate = challenge.ClientTime != null ? challenge.ClientTime : DateTime.Now;   // Note: Do not use DateTime.Now if ClientTime is available.
}

Remarks

This property should be set as an offset to ClientTime (when available) and NOT Now. Otherwise, if the clock on the client is different than the clock on the server by even one second, an unexpected playback error may occur.

Applies to

See also