AppDomainIsolatedTask 类

定义

提供与 Task 类相同的功能,但又派生自 MarshalByRefObject,因此可在其自身应用程序域中实例化。Provides the same functionality as Task, but also derives from MarshalByRefObject so that it can be instantiated in its own app domain.

public ref class AppDomainIsolatedTask abstract : MarshalByRefObject, Microsoft::Build::Framework::ITask
[Microsoft.Build.Framework.LoadInSeparateAppDomain]
public abstract class AppDomainIsolatedTask : MarshalByRefObject, Microsoft.Build.Framework.ITask
type AppDomainIsolatedTask = class
    inherit MarshalByRefObject
    interface ITask
Public MustInherit Class AppDomainIsolatedTask
Inherits MarshalByRefObject
Implements ITask
继承
AppDomainIsolatedTask
派生
属性
实现

构造函数

AppDomainIsolatedTask()

初始化 AppDomainIsolatedTask 类的新实例。Initializes a new instance of the AppDomainIsolatedTask class.

AppDomainIsolatedTask(ResourceManager)

初始化 AppDomainIsolatedTask 类的新实例,并允许派生的 Task 类注册其资源。Initializes a new instance of the AppDomainIsolatedTask class and allows derived Task classes to register their resources.

AppDomainIsolatedTask(ResourceManager, String)

初始化 AppDomainIsolatedTask 类的新实例,允许 Task 的派生类注册资源,以及提供前缀,以便根据字符串资源名称编写帮助关键字。Initializes a new instance of the AppDomainIsolatedTask class and allows derived Task classes to register their resources, as well as provide a prefix for composing help keywords from string resource names.

属性

BuildEngine

获取或设置可供任务使用的生成引擎接口。Gets or sets the build engine interface that is available to tasks.

HelpKeywordPrefix

获取或设置前缀,此前缀用于通过字符串资源名称组成 Help 关键字。Gets or sets the prefix that is used to compose Help keywords from string resource names.

HostObject

获取或设置与派生的 Task 相关联的宿主对象实例。Gets or sets a host object instance that is associated with the derived Task.

Log

获取包含任务日志记录方法的任务日志记录帮助程序对象的实例。Gets an instance of a task logging helper object that contains task logging methods.

TaskResources

获取或设置派生 Task 的区域性特定资源。Gets or sets culture-specific resources of the derived Task.

方法

CreateObjRef(Type)

创建一个对象,该对象包含生成用于与远程对象进行通信的代理所需的全部相关信息。Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(继承自 MarshalByRefObject)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Execute()

运行该任务。Runs the task.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetLifetimeService()

检索控制此实例的生存期策略的当前生存期服务对象。Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(继承自 MarshalByRefObject)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
InitializeLifetimeService()

当在派生类中重写时,给予任务无限的租约时间。When overridden in a derived class, gives tasks infinite lease time.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
MemberwiseClone(Boolean)

创建当前 MarshalByRefObject 对象的浅表副本。Creates a shallow copy of the current MarshalByRefObject object.

(继承自 MarshalByRefObject)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于