DateTime::IConvertible::ToInt16 Method
Silverlight
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
This conversion is not supported. Attempting to use this method throws an InvalidCastException.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Parameters
- provider
- Type: System::IFormatProvider
An object that implements the IFormatProvider interface. (This parameter is not used; specify nullptr.)
Implements
IConvertible::ToInt16(IFormatProvider)| Exception | Condition |
|---|---|
| InvalidCastException | In all cases. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Community Additions
ADD
Show: