HostObjectInitializationStatus Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

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

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

public enum HostObjectInitializationStatus
public enum HostObjectInitializationStatus
public enum HostObjectInitializationStatus

 Member nameDescription
NoActionReturnFailureIndicates that some of the parameters being passed into the task are invalid, and that the task should fail immediately. 
NoActionReturnSuccessIndicates that the host object is up to date, and that no further action is necessary. 
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. 
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. 

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

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

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

.NET Framework

Supported in: 2.0