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)

Syntax

C#
public String EncodeZeroPadding(
         Int32 number,
         Int32 maxNumDigits
)

Parameters

number
Type: System.Int32

positive integer to be encoded

maxNumDigits
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

Remarks

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