Answers

Question and Answer:

  Home  MCSD.NET - 70-310 Exam

⟩ You are creating an XML Web service named XYZService. This service has a function namedWriteMessage that writes messages to a flat file in the CEXServiceLog directory..You want to implement security for WriteMessage so that WriteMessage and all the code it callscan write messages only to the EXServiceLog directory.Which code segment should you use?A. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Demand()B. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Deny()C. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.PermitOnly()D. Dim filePermission As NewFileIOPermission_(FileIOPermissionAccess.Write, ?CEXServiceLog?)filePermission.Assert()

C. Dim filePermission As New

FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)

filePermission.PermitOnly()

 217 views

More Questions for you: