This documentation is archived and is not being maintained.

HostObjectInitializationStatus Enumeration

Defines the next action for ToolTask after an attempt to initialize the host object.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities (in Microsoft.Build.Utilities.dll)

public enum class HostObjectInitializationStatus

Member nameDescription
UseHostObjectToExecuteIndicates that an appropriate host object for this task exists, which can support all of the parameters passed in and should be invoked to do the real work of the task.
UseAlternateToolToExecuteIndicates that either a host object is not available, or that the host object is not capable of supporting all of the features required for this build. Therefore, ToolTask should fallback to an alternate means of doing the build, such as invoking the command-line tool.
NoActionReturnSuccessIndicates that the host object is up to date, and that no further action is necessary.
NoActionReturnFailureIndicates that some of the parameters being passed into the task are invalid, and that the task should fail immediately.

HostObjectInitializationStatus is the return type of the InitializeHostObject method of the ToolTask class.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0