IsUnrestricted Method
Collapse the table of content
Expand the table of content

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.

System_CAPS_noteNote

Use AddPermission to add a URI and specify its permissions.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft