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.Int32The number to convert into a String
digits
Type: System.Int32A 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.TeamFoundation.Build.Workflow.Activities Namespace