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!

Byte.ToDateTime

Converts this instance of a Byte to a DateTime object.

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

Return Value

A DateTime.

Exceptions

Exception Type Condition
InvalidCastException is thrown if it doesn't return a DateTime.

Remarks

The ToDateTime method returns a DateTime.

This method implements IConvertible, which replaced IValue. This method is used to obtain the type code for a specified object. (See Convert and Value for more information about conversions; see the Type for more information about types.)

See Also

Byte Structure | Byte Members | System Namespace