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
- token 
 Type: System.String- A token of the form $(...). 
- now 
 Type: System.DateTime- The expanded format String occuring before the token. This is important only for the $(rev:.rr) and $(rev:.rrrr) tokens. 
- buildDefinition
 Type: Microsoft.TeamFoundation.Build.Client.IBuildDefinition
Return Value
Type: System.String
Value of the token.
.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