单项选择题
YouarecreatingaWindowsCommunicationFoundation(WCF)servicethatimplementsthefollowingservicecontract.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()A.Inthemethodbody,checktheRights.PosessesPropertypropertytoseeifitcontainsmanager.
B.AddaPrincipalPermissionattributetothemethodandsettheRolespropertytoManager.
C.AddaSecurityPermissionattributetothemethodandsettheSecurityActiontoDemand.
D.Inthemethodbody,createanewinstanceofWindowsClaimSet.
A.PublicInterfaceIOrderProcessingSubApproveOrder(ByValidAsInteger)Forinteractiveandself-pacedpreparationofexam70-513,tryourpracticeexams.Practiceexamsalsoincludeselfassessmentandreportingfeatures!EndInterfaceYouneedtoensurethatonlyuserswiththeManagerrolecancalltheApproveOrdermethod.Whatshouldyoudo?()A.Inthemethodbody,checktheRights.PosessesPropertypropertytoseeifitcontainsmanager.
B.AddaPrincipalPermissionattributetothemethodandsettheRolespropertytoManager.
C.AddaSecurityPermissionattributetothemethodandsettheSecurityActiontoDemand.
D.Inthemethodbody,createanewinstanceofWindowsClaimSet.