WebPermission.IsUnrestricted Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Checks the overall permission state of the WebPermission.

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

public bool IsUnrestricted()

Return Value

Type: System.Boolean

true if the WebPermission was created with the UnrestrictedPermissionState; otherwise, false.

If WebPermission is Unrestricted, then the target class can use all URIs. Otherwise, specific permission must be given for any URI you want to use with the target class.


Use AddPermission to add a URI and specify its permissions.

.NET Framework
Available since 1.1
Return to top