Edit

Share via


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;
uint IConvertible.ToUInt32 (IFormatProvider provider);
[System.CLSCompliant(false)]
uint IConvertible.ToUInt32 (IFormatProvider provider);
abstract member System.IConvertible.ToUInt32 : IFormatProvider -> uint32
override this.System.IConvertible.ToUInt32 : IFormatProvider -> uint32
[<System.CLSCompliant(false)>]
abstract member System.IConvertible.ToUInt32 : IFormatProvider -> uint32
override this.System.IConvertible.ToUInt32 : IFormatProvider -> uint32
Function ToUInt32 (provider As IFormatProvider) As UInteger Implements IConvertible.ToUInt32

Parameters

provider
IFormatProvider

This parameter is ignored.

Returns

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

Implements

Attributes

Exceptions

The resulting integer value is less than UInt32.MinValue or greater than UInt32.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