AppDomainSetup AppDomainSetup AppDomainSetup AppDomainSetup Class

Definition

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

public ref class AppDomainSetup sealed : IAppDomainSetup
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class AppDomainSetup : IAppDomainSetup
type AppDomainSetup = class
    interface IAppDomainSetup
Public NotInheritable Class AppDomainSetup
Implements IAppDomainSetup
Inheritance
AppDomainSetupAppDomainSetupAppDomainSetupAppDomainSetup
Attributes
Implements

Remarks

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

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

Constructors

AppDomainSetup() AppDomainSetup() AppDomainSetup() AppDomainSetup()

Initializes a new instance of the AppDomainSetup class.

AppDomainSetup(ActivationArguments) AppDomainSetup(ActivationArguments) AppDomainSetup(ActivationArguments) AppDomainSetup(ActivationArguments)

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

AppDomainSetup(ActivationContext) AppDomainSetup(ActivationContext) AppDomainSetup(ActivationContext) 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.

Properties

ActivationArguments ActivationArguments ActivationArguments ActivationArguments

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

AppDomainInitializer AppDomainInitializer AppDomainInitializer AppDomainInitializer

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

AppDomainInitializerArguments AppDomainInitializerArguments AppDomainInitializerArguments 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.

AppDomainManagerAssembly AppDomainManagerAssembly AppDomainManagerAssembly 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.

AppDomainManagerType AppDomainManagerType AppDomainManagerType AppDomainManagerType

Gets or sets the full name of the type that provides the application domain manager for application domains created using this AppDomainSetup object.

ApplicationBase ApplicationBase ApplicationBase ApplicationBase

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

ApplicationName ApplicationName ApplicationName ApplicationName

Gets or sets the name of the application.

ApplicationTrust ApplicationTrust ApplicationTrust ApplicationTrust

Gets or sets an object containing security and trust information.

CachePath CachePath CachePath CachePath

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

ConfigurationFile ConfigurationFile ConfigurationFile ConfigurationFile

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

DisallowApplicationBaseProbing DisallowApplicationBaseProbing DisallowApplicationBaseProbing DisallowApplicationBaseProbing

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

DisallowBindingRedirects DisallowBindingRedirects DisallowBindingRedirects DisallowBindingRedirects

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

DisallowCodeDownload DisallowCodeDownload DisallowCodeDownload DisallowCodeDownload

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

DisallowPublisherPolicy DisallowPublisherPolicy DisallowPublisherPolicy DisallowPublisherPolicy

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

DynamicBase DynamicBase DynamicBase DynamicBase

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

LicenseFile LicenseFile LicenseFile LicenseFile

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

LoaderOptimization LoaderOptimization LoaderOptimization LoaderOptimization

Specifies the optimization policy used to load an executable.

PartialTrustVisibleAssemblies PartialTrustVisibleAssemblies PartialTrustVisibleAssemblies 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.

PrivateBinPath PrivateBinPath PrivateBinPath PrivateBinPath

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

PrivateBinPathProbe PrivateBinPathProbe PrivateBinPathProbe PrivateBinPathProbe

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

SandboxInterop SandboxInterop SandboxInterop 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.

ShadowCopyDirectories ShadowCopyDirectories ShadowCopyDirectories ShadowCopyDirectories

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

ShadowCopyFiles ShadowCopyFiles ShadowCopyFiles ShadowCopyFiles

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

TargetFrameworkName TargetFrameworkName TargetFrameworkName TargetFrameworkName

Gets or sets a string that specifies the target version and profile of the .NET Framework for the application domain, in a format that can be parsed by the FrameworkName(String) constructor.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetConfigurationBytes() GetConfigurationBytes() GetConfigurationBytes() GetConfigurationBytes()

Returns the XML configuration information set by the SetConfigurationBytes(Byte[]) method, which overrides the application's XML configuration information.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetCompatibilitySwitches(IEnumerable<String>) SetCompatibilitySwitches(IEnumerable<String>) SetCompatibilitySwitches(IEnumerable<String>) SetCompatibilitySwitches(IEnumerable<String>)

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

SetConfigurationBytes(Byte[]) SetConfigurationBytes(Byte[]) SetConfigurationBytes(Byte[]) SetConfigurationBytes(Byte[])

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

SetNativeFunction(String, Int32, IntPtr) SetNativeFunction(String, Int32, IntPtr) SetNativeFunction(String, Int32, IntPtr) SetNativeFunction(String, Int32, IntPtr)

Provides the common language runtime with an alternate implementation of a string comparison function.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also