EndTime

Gets or sets the time after which this role assignment is inactive.

Syntax

DateTime EndTime {get; set;}

Property value

The time at which the role assignment ceases to be active. A value of DateTime.MaxValue means the role assignment never expires. The time must be later than 1/1/1970 00:00.

Exceptions

EndTime throws an ArgumentException if you try to set the end time earlier than the start time or earlier than 2400 hours UTC, 1 January, 1970.