Question:You are changing the security settings of a file named MyData.xml. You need to preserve the existing inherited access rules. You also need to prevent the access rules from inheriting changes in the future. Which code segment should you use? 

A Dim objSecurity As New FileSecurity( _ "MyData.xml", AccessControlSections.All) objSecurity.SetAccessRuleProtection(True, True) File.SetAccessControl("MyData.xml", objSecurity) 

B Dim objSecurity As FileSecurity = _ File.GetAccessControl("MyData.xml") objSecurity.SetAccessRuleProtection(True, True) 

C Dim objSecurity As New FileSecurity() objSecurity.SetAccessRuleProtection(True, True) File.SetAccessControl("MyData.xml", objSecurity) 

D Dim objSecurity As FileSecurity = _ File.GetAccessControl("MyData.xml") objSecurity.SetAuditRuleProtection(True, True) File.SetAccessControl("myData.xml", objSecurity) 

+ Answer
+ Report
Total Preview: 966

Copyright © 2024. Powered by Intellect Software Ltd