网友您好, 请在下方输入框内输入要搜索的题目:
Youaredevelopingaclasslibrarythatwillopenthenetworksocketconnectionstocomputersonthenetwork.Youwilldeploytheclasslibrarytotheglobalassemblycacheandgrantitfulltrust.Youwritethefollowingcodetoensureusageofthesocketconnections.
SocketPermissionpermission=
newSocketPermission(PermissionState.Unrestricted);
permission.Assert();
Someoftheapplicationsthatusetheclasslibrarymightnothavethenecessarypermissionstoopenthenetworksocketconnections.Youneedtocanceltheassertion.
Whichcodesegmentshouldyouuse?()
参考答案