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

Throws an InvalidCastException. Called by the ToType method.

[Visual Basic]
Overridable Public Function ToUInt64() As UInt64
[C#]
public virtual ulong ToUInt64();
[C++]
public: virtual unsigned __int64 ToUInt64();
[JScript]
public function ToUInt64() : UInt64;

Return Value

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

Exceptions

Exception Type Condition
InvalidCastException (Always thrown.)

Remarks

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

See Also

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