Need to write a segment code to configure CLR stop loading the assembly if file permssion is absent.

You are developing an assembly to access file system. Need to write a segment code to configure CLR stop loading the assembly if file permssion is absent.

You are developing an assembly to access file system. Need to write a segment code to configure CLR stop loading the assembly if file permssion is absent.

A.
[FileIOPermission(SecurityAction.RequestOptional, AllLocalFiles = FileIOPermissionAccess.Read)]

B.
[FileIOPermission(SecurityAction.RequestMinimum, AllFiles = FileIOPermissionAccess.Read)]

C.
[FileIOPermission(SecurityAction.RequestRefuse, AllFiles = FileIOPermissionAccess.Read)]

D.
[FileIOPermission(SecurityAction.RequestOptional, AllFiles = FileIOPermissionAccess.Read)]



Leave a Reply 0

Your email address will not be published. Required fields are marked *