ActivatorLevel 枚举

定义

定义激活器链中 Activator 的适当位置。

public enum class ActivatorLevel
[System.Serializable]
public enum ActivatorLevel
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum ActivatorLevel
[<System.Serializable>]
type ActivatorLevel = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type ActivatorLevel = 
Public Enum ActivatorLevel
继承
ActivatorLevel
属性

字段

名称 说明
Construction 4

构造空白对象并运行构造函数。

Context 8

查找或创建合适的上下文。

AppDomain 12

查找或创建一个 AppDomain

Process 16

启动进程。

Machine 20

查找合适的计算机。

注解

激活器的设计允许多个激活器参与激活过程,并且可以使用其他激活器添加到链 IActivator.NextActivator中。 由于每个激活器负责调用链中的下一个激活器,因此激活器可以将自身定位到链中的任意位置。 枚举 ActivatorLevel 器可帮助激活器在链中找到适当的位置。

适用于