Assembly.IsDynamic Assembly.IsDynamic Assembly.IsDynamic Assembly.IsDynamic Property

定义

获取一个值,该值指示当前程序集是否是通过使用反射发出在当前进程中动态生成的。Gets a value that indicates whether the current assembly was generated dynamically in the current process by using reflection emit.

public:
 virtual property bool IsDynamic { bool get(); };
public virtual bool IsDynamic { get; }
member this.IsDynamic : bool
Public Overridable ReadOnly Property IsDynamic As Boolean

属性值

如果当前程序集是在当前进程中动态生成的,则为 true;否则为 falsetrue if the current assembly was generated dynamically in the current process; otherwise, false.

注解

动态程序集由派生类AssemblyBuilder表示。Dynamic assemblies are represented by the derived class AssemblyBuilder.

将动态程序集保存到磁盘时,保存的程序集不是动态的。When a dynamic assembly is saved to disk, the saved assembly is not dynamic. 如果将保存的程序集加载到另一个应用程序域或IsDynamic进程中false,则属性将返回。If the saved assembly is loaded into another application domain or process, the IsDynamic property returns false.

适用于