public static DateTime NextDate(
this Random random,
DateTime? minValue = null,
DateTime? maxValue = null
)<ExtensionAttribute>
Public Shared Function NextDate (
random As Random,
Optional minValue As DateTime? = Nothing,
Optional maxValue As DateTime? = Nothing
) As DateTimepublic:
[ExtensionAttribute]
static DateTime NextDate(
Random^ random,
Nullable<DateTime> minValue = nullptr,
Nullable<DateTime> maxValue = nullptr
)[<ExtensionAttribute>]
static member NextDate :
random : Random *
?minValue : Nullable<DateTime> *
?maxValue : Nullable<DateTime>
(* Defaults:
let _minValue = defaultArg minValue null
let _maxValue = defaultArg maxValue null
*)
-> DateTime The Kind property of minValue and maxValue is ignored.
The time component of minValue and maxValue is ignored.
The Kind property of the generated DateTime instances is always Unspecified.
| ArgumentNullException | random is . |
| ArgumentOutOfRangeException | maxValue is less than minValue. |