Decimal.IConvertible.ToInt64(IFormatProvider) Decimal.IConvertible.ToInt64(IFormatProvider) Decimal.IConvertible.ToInt64(IFormatProvider) Method

Definition

For a description of this member, see ToInt64(IFormatProvider).

 virtual long System.IConvertible.ToInt64(IFormatProvider ^ provider) = IConvertible::ToInt64;
long IConvertible.ToInt64 (IFormatProvider provider);
Function ToInt64 (provider As IFormatProvider) As Long Implements IConvertible.ToInt64

Parameters

provider
IFormatProvider IFormatProvider IFormatProvider

This parameter is ignored.

Returns

The value of the current instance, converted to a Int64.

Implements

Exceptions

The resulting integer value is less than MinValue or greater than MaxValue.

Remarks

This member is an explicit interface member implementation. It can be used only when the Decimal instance is cast to an IConvertible interface. The recommended alternative is to call either the Decimal.ToInt64 method or the Convert.ToInt64 method.

Applies to