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)


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


  • instance
    Type: System.Object

    The object to modify the host environment for.

.NET Framework Security

See Also


BuildEnvironment Class

Microsoft.TeamFoundation.Build.Workflow Namespace