本文整理汇总了VB.NET中System.Net.NetworkInformation.NetworkInformationPermission.Intersect方法的典型用法代码示例。如果您正苦于以下问题:VB.NET NetworkInformationPermission.Intersect方法的具体用法?VB.NET NetworkInformationPermission.Intersect怎么用?VB.NET NetworkInformationPermission.Intersect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。
在下文中一共展示了NetworkInformationPermission.Intersect方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: CType
Dim unrestricted As New System.Net.NetworkInformation.NetworkInformationPermission( _
System.Security.Permissions.PermissionState.Unrestricted)
Console.WriteLine("Is unrestricted? " + unrestricted.IsUnrestricted().ToString())
Dim read As New System.Net.NetworkInformation.NetworkInformationPermission( _
System.Net.NetworkInformation.NetworkInformationAccess.Read)
Dim copyPermission As System.Net.NetworkInformation.NetworkInformationPermission = _
CType(read.Copy(), System.Net.NetworkInformation.NetworkInformationPermission)
Dim unionPermission As System.Net.NetworkInformation.NetworkInformationPermission = _
CType(read.Union(unrestricted), System.Net.NetworkInformation.NetworkInformationPermission)
Console.WriteLine("Is subset?" + read.IsSubsetOf(unionPermission).ToString())
Dim intersectPermission As System.Net.NetworkInformation.NetworkInformationPermission = _
CType(read.Intersect(unrestricted), _
System.Net.NetworkInformation.NetworkInformationPermission)
开发者ID:VB.NET开发者,项目名称:System.Net.NetworkInformation,代码行数:13,代码来源:NetworkInformationPermission.Intersect