题目内容
Youarecreatinganewsecuritypolicyforanapplicationdomain.Youwritethefollowinglinesofcode.
PolicyLevelpolicy=PolicyLevel.CreateAppDomainLevel();
PolicyStatementnoTrustStatement=
newPolicyStatement(
policy.GetNamedPermissionSet("Nothing"));
PolicyStatementfullTrustStatement=
newPolicyStatement(
policy.GetNamedPermissionSet("FullTrust"));
YouneedtoarrangecodegroupsforthepolicysothatloadedassembliesdefaulttotheNothingpermissionset.Iftheassemblyoriginatesfromatrustedzone,thesecuritypolicymustgranttheassemblytheFullTrustpermissionset.
Whichcodesegmentshouldyouuse?()
查看答案
搜索结果不匹配?点我反馈
更多问题