Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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.ObjectThe object to modify the host environment for.
environment
Type: Microsoft.TeamFoundation.Build.Client.HostEnvironmentOptionA HostEnvironmentOption value that specifies the host environment of the specified object.
.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.