UtilityDataSizeUpConvert Method (UInt64, UtilityDataSizeDataUnit)Ipswitch.Messaging.Framework
Convert the DataSize up to the highest unit that will result in a whole number value.

Namespace: IMailAPI_NET
Assembly: IMailAPI_NET (in IMailAPI_NET.dll) Version: 1.0.0.0
Syntax

public static UtilityDataSize UpConvert(
	ulong valueInBytes,
	UtilityDataSizeDataUnit valueUnit
)

Parameters

valueInBytes
Type: SystemUInt64
The value to be converted (can be in any units found in the DataSize.DataUnit enum)
valueUnit
Type: IMailAPI_NETUtilityDataSizeDataUnit
The unit of the value to be converted

Return Value

Type: UtilityDataSize
The converted DataSize
See Also

Reference