IsUnrestricted Method

WebPermission.IsUnrestricted Method ()


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
© 2015 Microsoft