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.ToSingle

Converts this instance into a Single.

[Visual Basic]
Overridable Public Function ToSingle() As Single
[C#]
public virtual float ToSingle();
[C++]
public: virtual float ToSingle();
[JScript]
public function ToSingle() : float;

Return Value

The Single value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not a Single value.

Remarks

The ToSingle method casts this DateTime instance into a single-precision floating point number (Single) value. An exception is thrown if this instance cannot be coerced into a float.

See Also

DateTime Structure | DateTime Members | System Namespace | Single