本文整理汇总了VB.NET中System.Net.NetworkInformation.NetworkInformationPermission.IsSubsetOf方法的典型用法代码示例。如果您正苦于以下问题:VB.NET NetworkInformationPermission.IsSubsetOf方法的具体用法?VB.NET NetworkInformationPermission.IsSubsetOf怎么用?VB.NET NetworkInformationPermission.IsSubsetOf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。
在下文中一共展示了NetworkInformationPermission.IsSubsetOf方法的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())
开发者ID:VB.NET开发者,项目名称:System.Net.NetworkInformation,代码行数:10,代码来源:NetworkInformationPermission.IsSubsetOf