Converts this instance to a UInt32.
[Visual Basic] Overridable Public Function ToUInt32() As UInt32 [C#] public virtual uint ToUInt32(); [C++] public: virtual unsigned int ToUInt32(); [JScript] public function ToUInt32() : UInt32;
The UInt32value for this instance.
Exception Type | Condition |
---|---|
InvalidCastException | If this DateTime is not a UInt32 value. |
The ToUInt32 method casts this DateTime instance into a UInt32 value. An exception is thrown if this instance cannot be coerced into a 32-bit unsigned integer (uint).
DateTime Structure | DateTime Members | System Namespace | Int32 | UInt32