This documentation is archived and is not being maintained.

WebPermission.IsUnrestricted Method

Checks the overall permission state of the WebPermission.

[Visual Basic]
Public Overridable Function IsUnrestricted() As Boolean Implements _
   IUnrestrictedPermission.IsUnrestricted
[C#]
public virtual bool IsUnrestricted();
[C++]
public: virtual bool IsUnrestricted();
[JScript]
public function IsUnrestricted() : Boolean;

Return Value

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

Implements

IUnrestrictedPermission.IsUnrestricted

Remarks

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.

Note   Use AddPermission to add a URI and specify its permissions.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

WebPermission Class | WebPermission Members | System.Net Namespace | AddPermission

Show: