BuildEnvironment.SetEnvironment Method

Sets the environment of the specified object to the specified HostEnvironmentOption value.

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

Syntax

'Declaration
Public Shared Sub SetEnvironment ( _
    instance As Object, _
    environment As HostEnvironmentOption _
)
public static void SetEnvironment(
    Object instance,
    HostEnvironmentOption environment
)
public:
static void SetEnvironment(
    Object^ instance, 
    HostEnvironmentOption environment
)
static member SetEnvironment : 
        instance:Object * 
        environment:HostEnvironmentOption -> unit
public static function SetEnvironment(
    instance : Object, 
    environment : HostEnvironmentOption
)

Parameters

  • instance
    Type: System.Object

    The object to modify the host environment for.

.NET Framework Security

See Also

Reference

BuildEnvironment Class

Microsoft.TeamFoundation.Build.Workflow Namespace