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

Converts this instance to a Decimal value

[Visual Basic]
Overridable Public Function ToDecimal() As Decimal
[C#]
public virtual Decimal ToDecimal();
[C++]
public: virtual Decimal ToDecimal();
[JScript]
public function ToDecimal() : Decimal;

Return Value

The Decimal value for this instance.

Exceptions

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

Remarks

The ToDecimal method casts this DateTime instance into a decimal value. An exception is thrown if this instance cannot be coerced into the decimal.

See Also

DateTime Structure | DateTime Members | System Namespace | Decimal