题目内容
Youaredevelopingaclasslibrarythatwillopenthenetworksocketconnectionstocomputersonthenetwork.Youwilldeploytheclasslibrarytotheglobalassemblycacheandgrantitfulltrust.Youwritethefollowingcodetoensureusageofthesocketconnections.
SocketPermissionpermission=
newSocketPermission(PermissionState.Unrestricted);
permission.Assert();
Someoftheapplicationsthatusetheclasslibrarymightnothavethenecessarypermissionstoopenthenetworksocketconnections.Youneedtocanceltheassertion.
Whichcodesegmentshouldyouuse?()
查看答案
搜索结果不匹配?点我反馈
更多问题