System.Net.WebPermission.IsUnrestricted Method

Checks the overall permission state of the System.Net.WebPermission.

Syntax

public bool IsUnrestricted ()

Returns

true if the System.Net.WebPermission was created with the System.Security.Permissions.PermissionState.Unrestricted System.Security.Permissions.PermissionState; otherwise, false.

Remarks

If System.Net.WebPermission is System.Security.Permissions.PermissionState.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.

Note:

Use WebPermission.AddPermission(NetworkAccess, string) to add a URI and specify its permissions.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0