AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
Encodes positive integer value into a string by zero-padding it up to the specified number of digits.

Namespace: Amazon.SimpleDB.Util
Assembly: AWSSDK.dll
Version: (assembly version)


public String EncodeZeroPadding(
         Int32 number,
         Int32 maxNumDigits


Type: System.Int32

positive integer to be encoded

Type: System.Int32

maximum number of digits in the largest value in the data set

Return Value
Type: System.String
A string representation of the zero-padded integer


For example, the integer 123 encoded with a 6 digit maximum would be represented as 000123

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5