Decimal.IConvertible.ToUInt32(IFormatProvider) Decimal.IConvertible.ToUInt32(IFormatProvider) Decimal.IConvertible.ToUInt32(IFormatProvider) Method

Definition

Important

This API is not CLS-compliant.

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

 virtual System::UInt32 System.IConvertible.ToUInt32(IFormatProvider ^ provider) = IConvertible::ToUInt32;
[System.CLSCompliant(false)]
uint IConvertible.ToUInt32 (IFormatProvider provider);
Function ToUInt32 (provider As IFormatProvider) As UInteger Implements IConvertible.ToUInt32

Parameters

provider
IFormatProvider IFormatProvider IFormatProvider

This parameter is ignored.

Returns

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

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.ToUInt32 method or the Convert.ToUInt32 method.

The Decimal value is rounded toward zero to the nearest integer value.

Applies to