Edit

Share via


DBNull.IConvertible.ToUInt16(IFormatProvider) Method

Definition

Important

This API is not CLS-compliant.

This conversion is not supported. Attempting to make this conversion throws an InvalidCastException.

 virtual System::UInt16 System.IConvertible.ToUInt16(IFormatProvider ^ provider) = IConvertible::ToUInt16;
ushort IConvertible.ToUInt16 (IFormatProvider provider);
[System.CLSCompliant(false)]
ushort IConvertible.ToUInt16 (IFormatProvider provider);
abstract member System.IConvertible.ToUInt16 : IFormatProvider -> uint16
override this.System.IConvertible.ToUInt16 : IFormatProvider -> uint16
[<System.CLSCompliant(false)>]
abstract member System.IConvertible.ToUInt16 : IFormatProvider -> uint16
override this.System.IConvertible.ToUInt16 : IFormatProvider -> uint16
Function ToUInt16 (provider As IFormatProvider) As UShort Implements IConvertible.ToUInt16

Parameters

provider
IFormatProvider

An object that implements the IFormatProvider interface. (This parameter is not used; specify null.)

Returns

None. The return value for this member is not used.

Implements

Attributes

Exceptions

This conversion is not supported for the DBNull type.

Applies to

See also