Uređivanje

Dijeli putem


_AppDomain.DefineDynamicAssembly Method

Definition

Provides COM objects with version-independent access to the DefineDynamicAssembly method.

Overloads

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) method overload.

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) method overload.

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) method overload.

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) method overload.

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) method overload.

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) method overload.

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

dir
String

The name of the directory where the dynamic assembly will be saved. If dir is null, the directory defaults to the current directory.

evidence
Evidence

The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.

requiredPermissions
PermissionSet

The required permissions request.

optionalPermissions
PermissionSet

The optional permissions request.

refusedPermissions
PermissionSet

The refused permissions request.

isSynchronized
Boolean

true to synchronize the creation of modules, types, and members in the dynamic assembly; otherwise, false.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) method overload.

Applies to

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

dir
String

The name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.

evidence
Evidence

The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.

requiredPermissions
PermissionSet

The required permissions request.

optionalPermissions
PermissionSet

The optional permissions request.

refusedPermissions
PermissionSet

The refused permissions request.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) method overload.

Applies to

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

dir
String

The name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.

requiredPermissions
PermissionSet

The required permissions request.

optionalPermissions
PermissionSet

The optional permissions request.

refusedPermissions
PermissionSet

The refused permissions request.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) method overload.

Applies to

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

evidence
Evidence

The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.

requiredPermissions
PermissionSet

The required permissions request.

optionalPermissions
PermissionSet

The optional permissions request.

refusedPermissions
PermissionSet

The refused permissions request.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) method overload.

Applies to

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

dir
String

The name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) method overload.

Applies to

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

dir
String

The name of the directory where the assembly will be saved. If dir is null, the directory defaults to the current directory.

evidence
Evidence

The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) method overload.

Applies to

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

evidence
Evidence

The evidence supplied for the dynamic assembly. The evidence is used unaltered as the final set of evidence used for policy resolution.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) method overload.

Applies to

DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess)

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The access mode for the dynamic assembly.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) method overload.

Applies to

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

Provides COM objects with version-independent access to the DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) method overload.

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

Parameters

name
AssemblyName

The unique identity of the dynamic assembly.

access
AssemblyBuilderAccess

The mode in which the dynamic assembly will be accessed.

requiredPermissions
PermissionSet

The required permissions request.

optionalPermissions
PermissionSet

The optional permissions request.

refusedPermissions
PermissionSet

The refused permissions request.

Returns

Represents the dynamic assembly created.

Remarks

See the AppDomain.DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) method overload.

Applies to