Aracılığıyla paylaş


ToolTask.InitializeHostObject Method

Definition

We expect tasks to override this method if they support host objects. The implementation should make sure that the host object is ready to perform the real work of the task.

protected:
 virtual Microsoft::Build::Utilities::HostObjectInitializationStatus InitializeHostObject();
protected virtual Microsoft.Build.Utilities.HostObjectInitializationStatus InitializeHostObject ();
abstract member InitializeHostObject : unit -> Microsoft.Build.Utilities.HostObjectInitializationStatus
override this.InitializeHostObject : unit -> Microsoft.Build.Utilities.HostObjectInitializationStatus
Protected Overridable Function InitializeHostObject () As HostObjectInitializationStatus

Returns

The return value indicates what steps to take next. The default is to assume that there is no host object provided, and therefore we should fallback to calling the command-line tool.

Applies to