WebPermission.IsUnrestricted 方法

定义

检查 WebPermission 的整体权限状态。Checks the overall permission state of the WebPermission.

public:
 virtual bool IsUnrestricted();
public bool IsUnrestricted ();
override this.IsUnrestricted : unit -> bool
Public Function IsUnrestricted () As Boolean

返回

如果 WebPermission 是使用 UnrestrictedPermissionState 创建的,则为 true;否则为 falsetrue if the WebPermission was created with the UnrestrictedPermissionState; otherwise, false.

实现

注解

如果 UnrestrictedWebPermission,则目标类可以使用所有 Uri。If WebPermission is Unrestricted, then the target class can use all URIs. 否则,必须为要与目标类一起使用的任何 URI 指定特定权限。Otherwise, specific permission must be given for any URI you want to use with the target class.

备注

使用 AddPermission 添加 URI 并指定其权限。Use AddPermission to add a URI and specify its permissions.

适用于

另请参阅