0 out of 2 rated this helpful - Rate this topic

AppDomainSetup Class

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

System.Object
  System.AppDomainSetup

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
[SerializableAttribute]
[ComVisibleAttribute(true)]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public sealed class AppDomainSetup : IAppDomainSetup

The AppDomainSetup type exposes the following members.

  Name Description
Public method Supported by the XNA Framework AppDomainSetup() Initializes a new instance of the AppDomainSetup class.
Public method AppDomainSetup(ActivationArguments) Initializes a new instance of the AppDomainSetup class with the specified activation arguments required for manifest-based activation of an application domain.
Public method AppDomainSetup(ActivationContext) Initializes a new instance of the AppDomainSetup class with the specified activation context to use for manifest-based activation of an application domain.
Top
  Name Description
Public property ActivationArguments Gets or sets data about the activation of an application domain.
Public property AppDomainInitializer Gets or sets the AppDomainInitializer delegate, which represents a callback method that is invoked when the application domain is initialized.
Public property AppDomainInitializerArguments Gets or sets the arguments passed to the callback method represented by the AppDomainInitializer delegate. The callback method is invoked when the application domain is initialized.
Public property AppDomainManagerAssembly Gets or sets the display name of the assembly that provides the type of the application domain manager for application domains created using this AppDomainSetup object.
Public property AppDomainManagerType Gets or sets the full name of the type that provides the application domain manager for application domains created using this AppDomainSetup object.
Public property ApplicationBase Gets or sets the name of the directory containing the application.
Public property ApplicationName Gets or sets the name of the application.
Public property ApplicationTrust Gets or sets an object containing security and trust information.
Public property CachePath Gets or sets the name of an area specific to the application where files are shadow copied.
Public property ConfigurationFile Gets or sets the name of the configuration file for an application domain.
Public property DisallowApplicationBaseProbing Specifies whether the application base path and private binary path are probed when searching for assemblies to load.
Public property DisallowBindingRedirects Gets or sets a value that indicates whether an application domain allows assembly binding redirection.
Public property DisallowCodeDownload Gets or sets a value that indicates whether HTTP download of assemblies is allowed for an application domain.
Public property DisallowPublisherPolicy Gets or sets a value that indicates whether the <publisherPolicy> section of the configuration file is applied to an application domain.
Public property DynamicBase Gets or sets the base directory where the directory for dynamically generated files is located.
Public property LicenseFile Gets or sets the location of the license file associated with this domain.
Public property LoaderOptimization Specifies the optimization policy used to load an executable.
Public property PartialTrustVisibleAssemblies Gets or sets a list of assemblies marked with the NotVisibleByDefault flag that are made visible to partial-trust code running in a sandboxed application domain.
Public property PrivateBinPath Gets or sets the list of directories under the application base directory that are probed for private assemblies.
Public property PrivateBinPathProbe Gets or sets a string value that includes or excludes ApplicationBase from the search path for the application, and searches only PrivateBinPath.
Public property SandboxInterop Gets or sets a value that indicates whether interface caching is disabled for interop calls in the application domain, so that a QueryInterface is performed on each call.
Public property ShadowCopyDirectories Gets or sets the names of the directories containing assemblies to be shadow copied.
Public property ShadowCopyFiles Gets or sets a string that indicates whether shadow copying is turned on or off.
Top
  Name Description
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetConfigurationBytes Returns the XML configuration information set by the SetConfigurationBytes method, which overrides the application's XML configuration information.
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetCompatibilitySwitches Sets the specified switches, making the application domain compatible with previous versions of the .NET Framework for the specified issues.
Public method SetConfigurationBytes Provides XML configuration information for the application domain, overriding the application's XML configuration information.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

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

This class implements the IAppDomainSetup interface.

Caution note Caution

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ