Partilhar via


Task.HostObject Property

Definition

The build engine sets this property if the host IDE has associated a host object with this particular task.

public:
 property Microsoft::Build::Framework::ITaskHost ^ HostObject { Microsoft::Build::Framework::ITaskHost ^ get(); void set(Microsoft::Build::Framework::ITaskHost ^ value); };
public Microsoft.Build.Framework.ITaskHost HostObject { get; set; }
public Microsoft.Build.Framework.ITaskHost HostObject { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.HostObject : Microsoft.Build.Framework.ITaskHost with get, set
[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.HostObject : Microsoft.Build.Framework.ITaskHost with get, set
Public Property HostObject As ITaskHost

Property Value

The host object instance (can be null).

Implements

Attributes

Remarks

If the host IDE has associated a host object with this particular task, then the build engine sets this property.

The host object is provided by HostServices. Visual Studio determines the host object via a system registry key. For more information, see IVsMSBuildHostObject.

Applies to