ToolTask.InitializeHostObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.