mscorlib(4.0.0.0) API with additions
|
Represents assembly binding information that can be added to an instance of T:System.AppDomain. More...
Public Member Functions | |
AppDomainSetup () | |
Initializes a new instance of the T:System.AppDomainSetup class. More... | |
AppDomainSetup (ActivationContext activationContext) | |
Initializes a new instance of the T:System.AppDomainSetup class with the specified activation context to use for manifest-based activation of an application domain. More... | |
AppDomainSetup (ActivationArguments activationArguments) | |
Initializes a new instance of the T:System.AppDomainSetup class with the specified activation arguments required for manifest-based activation of an application domain. More... | |
byte [] | GetConfigurationBytes () |
Returns the XML configuration information set by the M:System.AppDomainSetup.SetConfigurationBytes(System.Byte[]) method, which overrides the application's XML configuration information. More... | |
void | SetConfigurationBytes (byte[] value) |
Provides XML configuration information for the application domain, replacing the application's XML configuration information. More... | |
void | SetCompatibilitySwitches (IEnumerable< string > switches) |
Sets the specified switches, making the application domain compatible with previous versions of the .NET Framework for the specified issues. More... | |
void | SetNativeFunction (string functionName, int functionVersion, IntPtr functionPointer) |
Provides the common language runtime with an alternate implementation of a string comparison function. More... | |
Properties | |
string | AppDomainManagerAssembly [get, set] |
Gets or sets the display name of the assembly that provides the type of the application domain manager for application domains created using this T:System.AppDomainSetup object. More... | |
string | AppDomainManagerType [get, set] |
Gets or sets the full name of the type that provides the application domain manager for application domains created using this T:System.AppDomainSetup object. More... | |
string [] | PartialTrustVisibleAssemblies [get, set] |
Gets or sets a list of assemblies marked with the F:System.Security.PartialTrustVisibilityLevel.NotVisibleByDefault flag that are made visible to partial-trust code running in a sandboxed application domain. More... | |
string | ApplicationBase [get, set] |
Gets or sets the name of the directory containing the application. More... | |
string | ConfigurationFile [get, set] |
Gets or sets the name of the configuration file for an application domain. More... | |
string | TargetFrameworkName [get, set] |
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 M:System.Runtime.Versioning.FrameworkName.::ctor(System.String) constructor. More... | |
string | DynamicBase [get, set] |
Gets or sets the base directory where the directory for dynamically generated files is located. More... | |
bool | DisallowPublisherPolicy [get, set] |
Gets or sets a value that indicates whether the <publisherPolicy> section of the configuration file is applied to an application domain. More... | |
bool | DisallowBindingRedirects [get, set] |
Gets or sets a value that indicates whether an application domain allows assembly binding redirection. More... | |
bool | DisallowCodeDownload [get, set] |
Gets or sets a value that indicates whether HTTP download of assemblies is allowed for an application domain. More... | |
bool | DisallowApplicationBaseProbing [get, set] |
Specifies whether the application base path and private binary path are probed when searching for assemblies to load. More... | |
string | ApplicationName [get, set] |
Gets or sets the name of the application. More... | |
AppDomainInitializer | AppDomainInitializer [get, set] |
Gets or sets the T:System.AppDomainInitializer delegate, which represents a callback method that is invoked when the application domain is initialized. More... | |
string [] | AppDomainInitializerArguments [get, set] |
Gets or sets the arguments passed to the callback method represented by the T:System.AppDomainInitializer delegate. The callback method is invoked when the application domain is initialized. More... | |
ActivationArguments | ActivationArguments [get, set] |
Gets or sets data about the activation of an application domain. More... | |
ApplicationTrust | ApplicationTrust [get, set] |
Gets or sets an object containing security and trust information. More... | |
string | PrivateBinPath [get, set] |
Gets or sets the list of directories under the application base directory that are probed for private assemblies. More... | |
string | PrivateBinPathProbe [get, set] |
Gets or sets a string value that includes or excludes P:System.AppDomainSetup.ApplicationBase from the search path for the application, and searches only P:System.AppDomainSetup.PrivateBinPath. More... | |
string | ShadowCopyDirectories [get, set] |
Gets or sets the names of the directories containing assemblies to be shadow copied. More... | |
string | ShadowCopyFiles [get, set] |
Gets or sets a string that indicates whether shadow copying is turned on or off. More... | |
string | CachePath [get, set] |
Gets or sets the name of an area specific to the application where files are shadow copied. More... | |
string | LicenseFile [get, set] |
Gets or sets the location of the license file associated with this domain. More... | |
LoaderOptimization | LoaderOptimization [get, set] |
Specifies the optimization policy used to load an executable. More... | |
bool | SandboxInterop [get, set] |
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. More... | |
![]() | |
string | ApplicationBase [get, set] |
Gets or sets the name of the directory containing the application. More... | |
string | ApplicationName [get, set] |
Gets or sets the name of the application. More... | |
string | CachePath [get, set] |
Gets and sets the name of an area specific to the application where files are shadow copied. More... | |
string | ConfigurationFile [get, set] |
Gets and sets the name of the configuration file for an application domain. More... | |
string | DynamicBase [get, set] |
Gets or sets the directory where dynamically generated files are stored and accessed. More... | |
string | LicenseFile [get, set] |
Gets or sets the location of the license file associated with this domain. More... | |
string | PrivateBinPath [get, set] |
Gets or sets the list of directories that is combined with the P:System.AppDomainSetup.ApplicationBase directory to probe for private assemblies. More... | |
string | PrivateBinPathProbe [get, set] |
Gets or sets the private binary directory path used to locate an application. More... | |
string | ShadowCopyDirectories [get, set] |
Gets or sets the names of the directories containing assemblies to be shadow copied. More... | |
string | ShadowCopyFiles [get, set] |
Gets or sets a string that indicates whether shadow copying is turned on or off. More... | |
Represents assembly binding information that can be added to an instance of T:System.AppDomain.
Definition at line 21 of file AppDomainSetup.cs.
System.AppDomainSetup.AppDomainSetup | ( | ) |
Initializes a new instance of the T:System.AppDomainSetup class.
Definition at line 682 of file AppDomainSetup.cs.
System.AppDomainSetup.AppDomainSetup | ( | ActivationContext | activationContext | ) |
Initializes a new instance of the T:System.AppDomainSetup class with the specified activation context to use for manifest-based activation of an application domain.
activationContext | The activation context to be used for an application domain. |
T:System.ArgumentNullException | activationContext is null . |
Definition at line 691 of file AppDomainSetup.cs.
System.AppDomainSetup.AppDomainSetup | ( | ActivationArguments | activationArguments | ) |
Initializes a new instance of the T:System.AppDomainSetup class with the specified activation arguments required for manifest-based activation of an application domain.
activationArguments | An object that specifies information required for the manifest-based activation of a new application domain. |
T:System.ArgumentNullException | activationArguments is null . |
Definition at line 701 of file AppDomainSetup.cs.
byte [] System.AppDomainSetup.GetConfigurationBytes | ( | ) |
Returns the XML configuration information set by the M:System.AppDomainSetup.SetConfigurationBytes(System.Byte[]) method, which overrides the application's XML configuration information.
null
if the M:System.AppDomainSetup.SetConfigurationBytes(System.Byte[]) method has not been called.Definition at line 915 of file AppDomainSetup.cs.
void System.AppDomainSetup.SetCompatibilitySwitches | ( | IEnumerable< string > | switches | ) |
Sets the specified switches, making the application domain compatible with previous versions of the .NET Framework for the specified issues.
switches | An enumerable set of string values that specify compatibility switches, or null to erase the existing compatibility switches. |
Definition at line 938 of file AppDomainSetup.cs.
void System.AppDomainSetup.SetConfigurationBytes | ( | byte [] | value | ) |
Provides XML configuration information for the application domain, replacing the application's XML configuration information.
value | An array that contains the XML configuration information to be used for the application domain. |
Definition at line 926 of file AppDomainSetup.cs.
void System.AppDomainSetup.SetNativeFunction | ( | string | functionName, |
int | functionVersion, | ||
IntPtr | functionPointer | ||
) |
Provides the common language runtime with an alternate implementation of a string comparison function.
functionName | The name of the string comparison function to override. |
functionVersion | The function version. For .NET Framework 4.5, its value must be 1 or greater. |
functionPointer | A pointer to the function that overrides functionName . |
T:System.ArgumentException | functionName is null . |
T:System.ArgumentNullException | functionVersion is not 1 or greater.-or- functionPointer is F:System.IntPtr.Zero. |
Definition at line 990 of file AppDomainSetup.cs.
|
getset |
Gets or sets data about the activation of an application domain.
T:System.InvalidOperationException | The property is set to an T:System.Runtime.Hosting.ActivationArguments object whose application identity does not match the application identity of the T:System.Security.Policy.ApplicationTrust object returned by the P:System.AppDomainSetup.ApplicationTrust property. No exception is thrown if the P:System.AppDomainSetup.ApplicationTrust property is null . |
Definition at line 447 of file AppDomainSetup.cs.
|
getset |
Gets or sets the T:System.AppDomainInitializer delegate, which represents a callback method that is invoked when the application domain is initialized.
Definition at line 417 of file AppDomainSetup.cs.
|
getset |
Gets or sets the arguments passed to the callback method represented by the T:System.AppDomainInitializer delegate. The callback method is invoked when the application domain is initialized.
Definition at line 431 of file AppDomainSetup.cs.
|
getset |
Gets or sets the display name of the assembly that provides the type of the application domain manager for application domains created using this T:System.AppDomainSetup object.
Definition at line 108 of file AppDomainSetup.cs.
|
getset |
Gets or sets the full name of the type that provides the application domain manager for application domains created using this T:System.AppDomainSetup object.
Definition at line 122 of file AppDomainSetup.cs.
|
getset |
Gets or sets the name of the directory containing the application.
Definition at line 158 of file AppDomainSetup.cs.
|
getset |
Gets or sets the name of the application.
Definition at line 400 of file AppDomainSetup.cs.
|
getset |
Gets or sets an object containing security and trust information.
T:System.InvalidOperationException | The property is set to an T:System.Security.Policy.ApplicationTrust object whose application identity does not match the application identity of the T:System.Runtime.Hosting.ActivationArguments object returned by the P:System.AppDomainSetup.ActivationArguments property. No exception is thrown if the P:System.AppDomainSetup.ActivationArguments property is null . |
T:System.ArgumentNullException | The property is set to null . |
Definition at line 464 of file AppDomainSetup.cs.
|
getset |
Gets or sets the name of an area specific to the application where files are shadow copied.
Definition at line 556 of file AppDomainSetup.cs.
|
getset |
Gets or sets the name of the configuration file for an application domain.
Definition at line 175 of file AppDomainSetup.cs.
|
getset |
Specifies whether the application base path and private binary path are probed when searching for assemblies to load.
true
if probing is not allowed; otherwise, false
. The default is false
.Definition at line 322 of file AppDomainSetup.cs.
|
getset |
Gets or sets a value that indicates whether an application domain allows assembly binding redirection.
true
if redirection of assemblies is not allowed; false
if it is allowed.Definition at line 278 of file AppDomainSetup.cs.
|
getset |
Gets or sets a value that indicates whether HTTP download of assemblies is allowed for an application domain.
true
if HTTP download of assemblies is not allowed; false
if it is allowed. Definition at line 300 of file AppDomainSetup.cs.
|
getset |
Gets or sets a value that indicates whether the <publisherPolicy> section of the configuration file is applied to an application domain.
true
if the <publisherPolicy>
section of the configuration file for an application domain is ignored; false
if the declared publisher policy is honored.Definition at line 256 of file AppDomainSetup.cs.
|
getset |
Gets or sets the base directory where the directory for dynamically generated files is located.
T:System.MemberAccessException | This property cannot be set because the application name on the application domain is null . |
Definition at line 224 of file AppDomainSetup.cs.
|
getset |
Gets or sets the location of the license file associated with this domain.
Definition at line 573 of file AppDomainSetup.cs.
|
getset |
Specifies the optimization policy used to load an executable.
Definition at line 588 of file AppDomainSetup.cs.
|
getset |
Gets or sets a list of assemblies marked with the F:System.Security.PartialTrustVisibilityLevel.NotVisibleByDefault flag that are made visible to partial-trust code running in a sandboxed application domain.
Definition at line 136 of file AppDomainSetup.cs.
|
getset |
Gets or sets the list of directories under the application base directory that are probed for private assemblies.
Definition at line 478 of file AppDomainSetup.cs.
|
getset |
Gets or sets a string value that includes or excludes P:System.AppDomainSetup.ApplicationBase from the search path for the application, and searches only P:System.AppDomainSetup.PrivateBinPath.
Nothing
in Visual Basic) to include the application base path when searching for assemblies; any non-null string value to exclude the path. The default value is null
.Definition at line 498 of file AppDomainSetup.cs.
|
getset |
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.
true
if interface caching is disabled for interop calls in application domains created with the current T:System.AppDomainSetup object; otherwise, false
.Definition at line 615 of file AppDomainSetup.cs.
|
getset |
Gets or sets the names of the directories containing assemblies to be shadow copied.
Definition at line 514 of file AppDomainSetup.cs.
|
getset |
Gets or sets a string that indicates whether shadow copying is turned on or off.
Definition at line 533 of file AppDomainSetup.cs.
|
getset |
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 M:System.Runtime.Versioning.FrameworkName.::ctor(System.String) constructor.
Definition at line 196 of file AppDomainSetup.cs.