AppDomainSetup.DisallowCodeDownload AppDomainSetup.DisallowCodeDownload AppDomainSetup.DisallowCodeDownload AppDomainSetup.DisallowCodeDownload Property

定义

获取或设置一个值,该值指示应用程序域是否允许通过 HTTP 下载程序集。Gets or sets a value that indicates whether HTTP download of assemblies is allowed for an application domain.

public:
 property bool DisallowCodeDownload { bool get(); void set(bool value); };
public bool DisallowCodeDownload { get; set; }
member this.DisallowCodeDownload : bool with get, set
Public Property DisallowCodeDownload As Boolean

属性值

如果不允许通过 HTTP 下载程序集,则为 true;如果允许则为 falsetrue if HTTP download of assemblies is not allowed; false if it is allowed.

注解

DisallowCodeDownload属性旨在供服务和服务器应用程序从 intranet 或 Internet 下载代码不是应用程序方案的一部分。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.

注意

默认值为DisallowCodeDownload属性是falseThe default value for the DisallowCodeDownload property is false. 此设置是不安全的服务。This setting is unsafe for services. 若要防止服务下载部分受信任的代码,请将此属性设置为trueTo help prevent services from downloading partially trusted code, set this property to true.

适用于