AWS SDK Version 3 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.

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

Namespace: Amazon.SimpleDB.Util
Assembly: AWSSDK.SimpleDB.dll
Version: 3.x.y.z

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: 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 Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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