This documentation is archived and is not being maintained.

AppDomainSetup.DisallowCodeDownload Property

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

[Visual Basic]
Public Property DisallowCodeDownload As Boolean
public bool DisallowCodeDownload {get; set;}
public: __property bool get_DisallowCodeDownload();
public: __property void set_DisallowCodeDownload(bool);
public function get DisallowCodeDownload() : Boolean;
public function set DisallowCodeDownload(Boolean);

Property Value

true if HTTP download of assemblies is to be disallowed; otherwise, it is allowed.


The DisallowCodeDownload 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.

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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

AppDomainSetup Class | AppDomainSetup Members | System Namespace