Share via


UpdateBuildNumber.ExpandToken Method (String, DateTime, IBuildDefinition)

This method is called at design time. It takes in a token of the form $(...) and returns the value that the token expands to.

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

Syntax

'Declaration
Public Shared Function ExpandToken ( _
    token As String, _
    now As DateTime, _
    buildDefinition As IBuildDefinition _
) As String
public static string ExpandToken(
    string token,
    DateTime now,
    IBuildDefinition buildDefinition
)
public:
static String^ ExpandToken(
    String^ token, 
    DateTime now, 
    IBuildDefinition^ buildDefinition
)
static member ExpandToken : 
        token:string * 
        now:DateTime * 
        buildDefinition:IBuildDefinition -> string
public static function ExpandToken(
    token : String, 
    now : DateTime, 
    buildDefinition : IBuildDefinition
) : String

Parameters

  • now
    Type: System.DateTime

    The expanded format String occuring before the token. This is important only for the $(rev:.rr) and $(rev:.rrrr) tokens.

Return Value

Type: System.String
Value of the token.

.NET Framework Security

See Also

Reference

UpdateBuildNumber Class

ExpandToken Overload

Microsoft.TeamFoundation.Build.Workflow.Activities Namespace