PrepAway - Latest Free Exam Questions & Answers

You need to be ensure that the function has the proper permission to read the c:\temp directory

You are developing a Windows Presentation Foundation (WPF) application.

You are implementing the security features for a function that requires File IO. The callers of this function that are higher in the stack.. have permission to read the c:\temp directory
The function also accesses other resources that requires permission.

You need to be ensure that the function has the proper permission to read the c:\temp directory, and that all other resources in the .. still be accessed

PrepAway - Latest Free Exam Questions & Answers

A.
[FileIOPermissionAttribute[SecurityAction.Demand, Read=”C:\\TEMP”]

B.
[FileIOPermissionAttribute[SecurityAction.Assert, Read=”C:\\TEMP”]

C.
[FileIOPermissionAttribute[SecurityAction.PermitOnly, Read=”C:\\TEMP”]

D.
[FileIOPermissionAttribute[SecurityAction.InheritanceDemand, Read=”C:\\TEMP”]

Explanation:
B or C

One Comment on “You need to be ensure that the function has the proper permission to read the c:\temp directory


Leave a Reply