AppDomainSetup.GetConfigurationBytes Method

Note: This method is new in the .NET Framework version 2.0.

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

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public byte[] GetConfigurationBytes ()
public byte[] GetConfigurationBytes ()
public function GetConfigurationBytes () : byte[]

Return Value

A Byte array containing the XML configuration information that was set by the SetConfigurationBytes method, or a null reference (Nothing in Visual Basic) if the SetConfigurationBytes method has not been called.

The SetConfigurationBytes method provides a way to override the configuration information of an application that creates a new application domain. The configuration file information in value 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.

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

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

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: