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

Converts this instance to a Char value

[Visual Basic]
Overridable Public Function ToChar() As Char
[C#]
public virtual char ToChar();
[C++]
public: virtual __wchar_t ToChar();
[JScript]
public function ToChar() : Char;

Return Value

The Char value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not a character.

Remarks

The ToChar method casts this DateTime instance into a Char value. An exception is thrown if this instance cannot be coerced into a Unicode character (char).

See Also

DateTime Structure | DateTime Members | System Namespace | Char | UnicodeEncoding