UpdateBuildNumber.PaddedString Method

This method converts an integer into a String and pads it with leading zeros to be the required number of digits in length.

Namespace:  Microsoft.TeamFoundation.Build.Workflow.Activities
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

Syntax

'Declaration
Public Shared Function PaddedString ( _
    number As Integer, _
    digits As Integer _
) As String
public static string PaddedString(
    int number,
    int digits
)
public:
static String^ PaddedString(
    int number, 
    int digits
)
static member PaddedString : 
        number:int * 
        digits:int -> string
public static function PaddedString(
    number : int, 
    digits : int
) : String

Parameters

  • number
    Type: System.Int32

    The number to convert into a String

  • digits
    Type: System.Int32

    A positve non-zero number representing the number of chars in the result String.

Return Value

Type: System.String
A String representation of the number padded with leading zeros to the number of digits

.NET Framework Security

See Also

Reference

UpdateBuildNumber Class

Microsoft.TeamFoundation.Build.Workflow.Activities Namespace