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!

DBNull.ToDecimal

Throws an InvalidCastException. Called by the ToType method.

[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

None, but the return value is typed decimal to implement the IConvertible interface.

Remarks

If the ToType type is a Decimal this method is called. This method throws an InvalidCastException().

See Also

DBNull Class | DBNull Members | System Namespace | ToType | IConvertible | Type | Decimal