Sprache
Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.