NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.ToInt32

Converts this instance into an Int32.

[Visual Basic]
Overridable Public Function ToInt32() As Integer
[C#]
public virtual int ToInt32();
[C++]
public: virtual int ToInt32();
[JScript]
public function ToInt32() : int;

Return Value

The Int32 value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not an Int32 value.

Remarks

The ToInt32 method casts this DateTime instance into an Int32 value. An exception is thrown if this instance cannot be coerced into an 32-bit signed integer (int).

See Also

DateTime Structure | DateTime Members | System Namespace | Int32 | UInt32