NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AppDomain.DefineDynamicAssembly

Defines a dynamic assembly in the current application domain.

Overload List

Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, and the permission requests.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, PermissionSet, PermissionSet, PermissionSet) : AssemblyBuilder;

Defines a dynamic assembly with the given name, given access, supplied evidence, and the permission requests.

Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a a null reference (in Visual Basic Nothing) evidence. If evidence is a null reference (Nothing), the runtime copies the permission sets (that is, the current grant and deny sets) from the caller's assembly to the dynamic assembly being defined and marks policy as resolved.

If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence, PermissionSet, PermissionSet, PermissionSet) : AssemblyBuilder;

Defines a dynamic Assembly with the given name, given access, the name of the directory for saving the Assembly, supplied Evidence, and the permission requests. Optionally, the caller can specify if the creation of modules, types, and members in the dynamic Assembly should be synchronized.

Only fully trusted callers can supply their evidence when defining a dynamic Assembly. The runtime will map the Evidence through policy to determine the granted permissions. Semi-trusted callers must supply a Evidence. If evidence is a null reference (Nothing), the runtime copies the permission sets, i.e., the current grant and deny sets, from the caller's Assembly to the dynamic Assembly being defined and marks policy as resolved.

If the dynamic Assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the Assembly was saved.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, bool);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, bool);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet, Boolean) : AssemblyBuilder;

Defines a dynamic assembly with the given name, the given access, and the given permission requests.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, PermissionSet, PermissionSet, PermissionSet) : AssemblyBuilder;

Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, and the supplied evidence.

Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a a null reference (Nothing) evidence. If evidence is a null reference (Nothing), the runtime copies the permission sets, i.e., the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, String, Evidence);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence) : AssemblyBuilder;

Defines a dynamic assembly with the given name and the given access.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess) : AssemblyBuilder;

Defines a dynamic assembly with the given name, the given access, and the name of the directory for saving the assembly.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, String);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String) : AssemblyBuilder;

Defines a dynamic assembly with the given name, given access, the name of the directory for saving the assembly, supplied evidence, and the permission requests.

Only fully trusted callers can supply their evidence when defining a dynamic assembly. The runtime will map the evidence through policy to determine the granted permissions. Semi-trusted callers must supply a a null reference (Nothing) evidence. If evidence is a null reference (Nothing), the runtime copies the permission sets, i.e., the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved.

If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, String, Evidence, PermissionSet, PermissionSet, PermissionSet) : AssemblyBuilder;

Defines a dynamic assembly with the given name, the given access, and the supplied evidence.

Only fully trusted callers can supply evidence when defining a dynamic assembly. The runtime will map the supplied evidence through policy to determine the granted permissions. Semi-trusted callers must supply a a null reference (Nothing) evidence. If evidence is a null reference (Nothing), the runtime copies the permission sets, i.e., the current grant and deny sets, from the caller's assembly to the dynamic assembly being defined and marks policy as resolved. If the dynamic assembly is saved to disk, subsequent loads will get grants based on policies associated with the location where the assembly was saved.

[Visual Basic] Overloads Public Function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) As AssemblyBuilder
[C#] public AssemblyBuilder DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence);
[C++] public: AssemblyBuilder* DefineDynamicAssembly(AssemblyName*, AssemblyBuilderAccess, Evidence);
[JScript] public function DefineDynamicAssembly(AssemblyName, AssemblyBuilderAccess, Evidence) : AssemblyBuilder;

See Also

AppDomain Class | AppDomain Members | System Namespace