_AppDomain.DefineDynamicAssembly 方法

定义

为 COM 对象提供对 DefineDynamicAssembly 方法的与版本无关的访问。

重载

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean)

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::String ^ dir, System::Security::Policy::Evidence ^ evidence, System::Security::PermissionSet ^ requiredPermissions, System::Security::PermissionSet ^ optionalPermissions, System::Security::PermissionSet ^ refusedPermissions, bool isSynchronized);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, string dir, System.Security.Policy.Evidence evidence, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions, bool isSynchronized);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * string * System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet * bool -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, dir As String, evidence As Evidence, requiredPermissions As PermissionSet, optionalPermissions As PermissionSet, refusedPermissions As PermissionSet, isSynchronized As Boolean) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

dir
String

保存动态程序集的目录的名称。 如果 dirnull,目录将默认为当前目录。

evidence
Evidence

为动态程序集提供的证据。 该证据始终作为最后一组用于策略解析的证据来使用。

requiredPermissions
PermissionSet

必需的权限请求。

optionalPermissions
PermissionSet

可选的权限请求。

refusedPermissions
PermissionSet

被拒绝的权限请求。

isSynchronized
Boolean

若要在动态程序集中同步模块、类型和成员的创建,则为 true;否则为 false

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet)

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::String ^ dir, System::Security::Policy::Evidence ^ evidence, System::Security::PermissionSet ^ requiredPermissions, System::Security::PermissionSet ^ optionalPermissions, System::Security::PermissionSet ^ refusedPermissions);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, string dir, System.Security.Policy.Evidence evidence, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * string * System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, dir As String, evidence As Evidence, requiredPermissions As PermissionSet, optionalPermissions As PermissionSet, refusedPermissions As PermissionSet) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

dir
String

保存程序集的目录的名称。 如果 dirnull,目录将默认为当前目录。

evidence
Evidence

为动态程序集提供的证据。 该证据始终作为最后一组用于策略解析的证据来使用。

requiredPermissions
PermissionSet

必需的权限请求。

optionalPermissions
PermissionSet

可选的权限请求。

refusedPermissions
PermissionSet

被拒绝的权限请求。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::String ^ dir, System::Security::PermissionSet ^ requiredPermissions, System::Security::PermissionSet ^ optionalPermissions, System::Security::PermissionSet ^ refusedPermissions);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, string dir, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * string * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, dir As String, requiredPermissions As PermissionSet, optionalPermissions As PermissionSet, refusedPermissions As PermissionSet) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

dir
String

保存程序集的目录的名称。 如果 dirnull,目录将默认为当前目录。

requiredPermissions
PermissionSet

必需的权限请求。

optionalPermissions
PermissionSet

可选的权限请求。

refusedPermissions
PermissionSet

被拒绝的权限请求。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet)

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::Security::Policy::Evidence ^ evidence, System::Security::PermissionSet ^ requiredPermissions, System::Security::PermissionSet ^ optionalPermissions, System::Security::PermissionSet ^ refusedPermissions);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.Security.Policy.Evidence evidence, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * System.Security.Policy.Evidence * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, evidence As Evidence, requiredPermissions As PermissionSet, optionalPermissions As PermissionSet, refusedPermissions As PermissionSet) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

evidence
Evidence

为动态程序集提供的证据。 该证据始终作为最后一组用于策略解析的证据来使用。

requiredPermissions
PermissionSet

必需的权限请求。

optionalPermissions
PermissionSet

可选的权限请求。

refusedPermissions
PermissionSet

被拒绝的权限请求。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::String ^ dir);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, string dir);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * string -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, dir As String) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

dir
String

保存程序集的目录的名称。 如果 dirnull,目录将默认为当前目录。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::String ^ dir, System::Security::Policy::Evidence ^ evidence);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, string dir, System.Security.Policy.Evidence evidence);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * string * System.Security.Policy.Evidence -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, dir As String, evidence As Evidence) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

dir
String

保存程序集的目录的名称。 如果 dirnull,目录将默认为当前目录。

evidence
Evidence

为动态程序集提供的证据。 该证据始终作为最后一组用于策略解析的证据来使用。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::Security::Policy::Evidence ^ evidence);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.Security.Policy.Evidence evidence);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * System.Security.Policy.Evidence -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, evidence As Evidence) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

evidence
Evidence

为动态程序集提供的证据。 该证据始终作为最后一组用于策略解析的证据来使用。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

动态程序集的访问模式。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) 方法重载。

适用于

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet)

为 COM 对象提供对 DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) 方法重载的与版本无关的访问权限。

public:
 System::Reflection::Emit::AssemblyBuilder ^ DefineDynamicAssembly(System::Reflection::AssemblyName ^ name, System::Reflection::Emit::AssemblyBuilderAccess access, System::Security::PermissionSet ^ requiredPermissions, System::Security::PermissionSet ^ optionalPermissions, System::Security::PermissionSet ^ refusedPermissions);
public System.Reflection.Emit.AssemblyBuilder DefineDynamicAssembly (System.Reflection.AssemblyName name, System.Reflection.Emit.AssemblyBuilderAccess access, System.Security.PermissionSet requiredPermissions, System.Security.PermissionSet optionalPermissions, System.Security.PermissionSet refusedPermissions);
abstract member DefineDynamicAssembly : System.Reflection.AssemblyName * System.Reflection.Emit.AssemblyBuilderAccess * System.Security.PermissionSet * System.Security.PermissionSet * System.Security.PermissionSet -> System.Reflection.Emit.AssemblyBuilder
Public Function DefineDynamicAssembly (name As AssemblyName, access As AssemblyBuilderAccess, requiredPermissions As PermissionSet, optionalPermissions As PermissionSet, refusedPermissions As PermissionSet) As AssemblyBuilder

参数

name
AssemblyName

动态程序集的唯一标识。

access
AssemblyBuilderAccess

访问动态程序集所采用的模式。

requiredPermissions
PermissionSet

必需的权限请求。

optionalPermissions
PermissionSet

可选的权限请求。

refusedPermissions
PermissionSet

被拒绝的权限请求。

返回

AssemblyBuilder

表示创建的动态程序集。

注解

请参阅 AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) 方法重载。

适用于