SecurityZone Enum

Definition

Defines the integer values corresponding to security zones used by security policy.

C#
public enum SecurityZone
C#
[System.Serializable]
public enum SecurityZone
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum SecurityZone
Inheritance
SecurityZone
Attributes

Fields

Name Value Description
NoZone -1

No zone is specified.

MyComputer 0

The local computer zone is an implicit zone used for content that exists on the user's computer.

Intranet 1

The local intranet zone is used for content located on a company's intranet. Because the servers and information would be within a company's firewall, a user or company could assign a higher trust level to the content on the intranet.

Trusted 2

The trusted sites zone is used for content located on Web sites considered more reputable or trustworthy than other sites on the Internet. Users can use this zone to assign a higher trust level to these sites to minimize the number of authentication requests. The URLs of these trusted Web sites need to be mapped into this zone by the user.

Internet 3

The Internet zone is used for the Web sites on the Internet that do not belong to another zone.

Untrusted 4

The restricted sites zone is used for Web sites with content that could cause, or could have caused, problems when downloaded. The URLs of these untrusted Web sites need to be mapped into this zone by the user.

Remarks

To configure zones on Windows, use the Security tab in Internet options.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9