SiteIdentityPermission.IsSubsetOf(IPermission) 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定当前权限是否为指定权限的子集。
public:
 override bool IsSubsetOf(System::Security::IPermission ^ target);
	public override bool IsSubsetOf(System.Security.IPermission target);
	override this.IsSubsetOf : System.Security.IPermission -> bool
	Public Overrides Function IsSubsetOf (target As IPermission) As Boolean
	参数
- target
 - IPermission
 
将要测试子集关系的权限。 此权限必须与当前权限属于同一类型。
返回
如果当前权限是指定权限的子集,则为 true;否则为 false。
例外
              target 参数不为 null,并且与当前权限不属于同一类型。
注解
如果当前权限指定了由指定权限完全包含的网站,则当前权限是指定权限的子集。
下表显示了 当前 IsSubsetOf 权限和指定权限的值范围的值。
| 当前权限 | 指定权限 | IsSubsetOf | 
|---|---|---|
www.fourthcoffee.com | 
www.fourthcoffee.com | 
true | 
www.fourthcoffee.com | 
www.tailspintoys.com | 
false | 
www.fourthcoffee.com | 
*.fourthcoffee.com | 
true | 
www.fourthcoffee.com | 
*.com | 
true | 
*.fourthcoffee.com | 
www.fourthcoffee.com | 
false | 
*.fourthcoffee.com | 
*.fourthcoffee.com | 
true | 
*.fourthcoffee.com | 
*.com | 
true | 
除 None | 
* | 
true | 
None | 
任意 | true |