mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object System.IAppDomainSetup System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None) System.Runtime.InteropServices.ComVisible(true)

Changing the properties of an instance does not affect any existing . It can affect only the creation of a new , when the method is called with the instance as a parameter.

This class implements the interface.

The default value for the property is false. This setting is unsafe for services. To help prevent services from downloading partially trusted code, set this property to true

Represents assembly binding information that can be added to an instance of .

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added

  Initializes a new instance of the class.

- Constructor
  2.0.0.0
  4.0.0.0

  The object specified for is used to generate an object containing information required to activate a new application domain. This object can be accessed by using the property.

  Initializes a new instance of the class with the specified activation context to use for manifest-based activation of an application domain.

  The activation context to be used for an application domain.
- Constructor
  2.0.0.0
  4.0.0.0

  The object specified for can be accessed by using the property.

  Initializes a new instance of the class with the specified activation arguments required for manifest-based activation of an application domain.

  An object that specifies information required for the manifest-based activation of a new application domain.
- Property
  2.0.0.0
  4.0.0.0
  System.Runtime.Hosting.ActivationArguments To be added.

  No exception is thrown if this property is set to null.

  The information provided by the object supports manifest-based activation.

  Gets or sets data about the activation of an application domain.

- Property
  2.0.0.0
  4.0.0.0
  System.AppDomainInitializer To be added.

  To pass information to the callback method, assign an array of strings to the property. The array is passed to the callback method each time an is initialized.

  The callback method is executed in the context of the newly created application domain.

  Gets or sets the delegate, which represents a callback method that is invoked when the application domain is initialized.

- Property
  2.0.0.0
  4.0.0.0
  System.String[] To be added.

  Use the property to specify a callback method that is invoked during initialization. If the property is not set, the array assigned to this property is not used.

  The callback method is executed in the context of the newly created application domain.

  Gets or sets the arguments passed to the callback method represented by the delegate. The callback method is invoked when the application domain is initialized.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  The application base directory is where the assembly manager begins probing for assemblies.

  The property can influence which permissions are granted to an application domain. For example, an application domain originating from the local computer normally receives full trust based on its location of origin. However, if the property of that is set to the full name of an intranet directory, the setting restricts the permissions granted to the application domain to a LocalIntranet grant even though the application domain actually originates from the local computer.

  Gets or sets the name of the directory containing the application.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string' To be added

  Gets or sets the name of the application.

- Property
  2.0.0.0
  4.0.0.0
  System.Security.Policy.ApplicationTrust To be added.

  This property is null when the is created. Once changed, it cannot be reset to a null reference.

  Gets or sets an object containing security and trust information.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  In order for this property to have an effect, the property must also be set. If the property is not set, the property is ignored and the shadow copy cache location defaults to the download cache.

  For more information on shadow copying, see Shadow Copying Assemblies.

  Gets or sets the name of an area specific to the application where files are shadow copied.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  The configuration file describes the search rules and configuration data for the application domain. The host that creates the application domain is responsible for supplying this data because the meaningful values vary from situation to situation.

  For example, the configuration data for ASP.NET applications is stored for each application, site, and computer, while the configuration data for an executable is stored for each application, user, and computer. Only the host knows the specifics of the configuration data for a particular circumstance.

  Gets or sets the name of the configuration file for an application domain.

- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  If the property is true, the value of the property is ignored. That is, no assemblies are probed for in the directories specified by the property.

  If the property is true, the values of the property and the property are ignored. No assemblies are probed for in the directories specified by the property.

  The property provides an additional layer of control over the loading process. In the normal assembly loading sequence, the application base is probed before the event is raised. However, some applications might need to load assemblies from an OLE compound file within a document, or from a unique known location that is neither in the global assembly cache nor in the directories specified by the and properties. Such applications can use the property to avoid the delay caused by normal probing, and to avoid loading copies of the necessary assembly that might be located in the normal probing paths.

  Specifies whether the application base path and private binary path are probed when searching for assemblies to load.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The property is designed to be used by services and server applications where assembly binding redirection is not part of the application scenario.

  Gets or sets a value that indicates whether an application domain allows assembly binding redirection.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The property is designed to be used by services and server applications where downloading code from an intranet or the Internet is not part of the application scenario.

  The default value for the property is false. This setting is unsafe for services. To help prevent services from downloading partially trusted code, set this property to true.

  Gets or sets a value that indicates whether HTTP download of assemblies is allowed for an application domain.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added: an object of type 'bool'

  The property specifically applies to a Web application that is loaded locally. Use this property to help prevent a malicious attempt to execute an unsafe Web application in safe mode.

  For more information about bypassing publisher policy, see the Redirecting Assembly Versions topic. For more information about safe mode, see the Step 1: Examining the Configuration Files topic.

  Gets or sets a value that indicates whether the <publisherPolicy> section of the configuration file is applied to an application domain.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  Use this property to set the base directory where the dynamic directory for the new application domain will be located. When code in the new application domain loads an assembly, assembly resolution looks first in the normal probing paths. If it does not find the assembly, it looks in the dynamic directory, which is returned by the property. Dynamic assemblies that will be loaded and executed by the new application domain can be placed there.

  When you assign a path to the property, an additional subdirectory is added; the name of this subdirectory is the hash code of the value assigned to the property. Thus, the base directory subsequently returned by this property is always different from the value assigned.

  Assigning a value to this property does not create any directories. The directories must be created or verified by the code that uses them.

  The dynamic directory is a subdirectory of . Its simple name is the value returned by the property, so its format is original path\hash code\application name.

  Gets or sets the base directory where the directory for dynamically generated files is located.

- Method
  2.0.0.0
  4.0.0.0
  System.Byte[]

  The method provides a way to override the configuration information of an application that creates a new application domain. The configuration file information in overrides the configuration file information for the application. For example, when the Example.exe application creates a new application domain, it can override the configuration information originally obtained from Example.exe.config file.

  Some consumers of configuration file information do not use the information stored by the method. The runtime does not enforce this. To ensure that all configuration file information is overridden in a new application domain, use the property to specify a configuration file. The method does affect assembly binding.

  The XML in is the same as the XML in a normal configuration file, except that it is stored as a array.

  To access the configuration bytes for an application domain, use the property to get the object for the application domain, then use the method.

  Returns the XML configuration information set by the method, which overrides the application's XML configuration information.

  An array that contains the XML configuration information that was set by the method, or null if the method has not been called.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string' To be added

  Gets or sets the location of the license file associated with this domain.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.LoaderOptimization To be added: an object of type 'LoaderOptimization' To be added

  Specifies the optimization policy used to load an executable.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  Private assemblies are deployed in the same directory structure as the application. If the directories specified for are not under , they are ignored.

  Gets or sets the list of directories under the application base directory that are probed for private assemblies.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  Set this property to any non-null string value, including (""), to exclude the application directory path — that is, — from the search path for the application, and to search for assemblies only in .

  Gets or sets a string value that includes or excludes from the search path for the application, and searches only .

- Method
  4.0.0.0
  System.Void ``

  Major versions of the .NET Framework sometimes introduce breaking changes from the previous version. For example, the net_v40_long introduces a small number of breaking changes from the net_v35_long. Use the method to specify that one or more of these breaking changes should be rolled back for the application domain, to make the behavior compatible with the previous version of the .NET Framework.

  Each time you call this method, it replaces the existing switch settings. To erase the settings, specify null for the parameter.

  The set of string values you provide for can be a simple string array, because arrays implement the interface.

  The following table provides examples of compatibility switches that can be set to restore the behavior of earlier versions of the .NET Framework.

  Switch

  Meaning

  "NetFx40_LegacySecurityPolicy"

  Code access security (CAS) for the net_v35_short is enabled in this application domain. See <NetFx40_LegacySecurityPolicy> Element.

  "NetFx40_Legacy20SortingBehavior"

  String sorting defaults for the net_v35_short are enabled in this application domain. Successfully restoring legacy sorting behavior also requires the sort00001000.dll dynamic link library to be available on the local system.

  "NetFx40_Legacy40SortingBehavior"

  String sorting defaults for the net_v40_short and Unicode 5.0 are enabled in this application domain. Successfully restoring legacy sorting behavior also requires the sort00060101.dll dynamic link library to be available on the local system.

  "NetFx40_TimeSpanLegacyFormatMode"

  formatting behavior for the net_v35_short is enabled in this application domain.

  Sets the specified switches, making the application domain compatible with previous versions of the .NET Framework for the specified issues.

  An enumerable set of string values that specify compatibility switches, or null to erase the existing compatibility switches.
- Method
  2.0.0.0
  4.0.0.0
  System.Void ``

  The method provides a way to replace the configuration information of an application that creates a new application domain. The configuration file information in replaces the configuration file information for the application. For example, when the Example.exe application creates a new application domain, it can replace the configuration information originally obtained from the Example.exe.config file.

  Some consumers of configuration file information do not use the information stored by the method. The runtime does not enforce this. To ensure that all configuration file information is replaced in a new application domain, use the property to specify a configuration file. The method does affect assembly binding.

  The XML in is the same as the XML in a normal configuration file, except that it is stored as a array.

  Provides XML configuration information for the application domain, replacing the application's XML configuration information.

  An array that contains the XML configuration information to be used for the application domain.
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  When shadow copying is enabled, the default is to shadow copy all assemblies found through probing; that is, in the directories specified by the and properties. The property restricts the shadow copy to the assemblies in the directories specified by .

  Directory paths must not contain semicolons, because the semicolon is the delimiter character. There is no escape character for semicolons.

  When shadow copying is in effect, assembly files are copied to another location before the assemblies are loaded. The original assembly file is not locked, so it can be updated. For more information on shadow copying, see Shadow Copying Assemblies.

  Gets or sets the names of the directories containing assemblies to be shadow copied.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.String To be added: an object of type 'string'

  For more information on shadow copying, see Shadow Copying Assemblies.

  Gets or sets a string that indicates whether shadow copying is turned on or off.