New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

GIAC GIAC Secure Software Programmer - C#.NET GSSP-.NET Question # 77 Topic 8 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-.NET Question # 77 Topic 8 Discussion

GSSP-.NET Exam Topic 8 Question 77 Discussion:
Question #: 77
Topic #: 8

You work as a Software Developer for ABC Inc. The company uses Visual Studio .NET as its application development platform. You create a class library using the .NET Framework. The library will be used to open the NSCs of computers. Later, you will set up the class library to the GAC and provide it Full Trust permission. You write down the following code segments for the socket connections:

SocketPermission permission = new SocketPermission(PermissionState.Unrestricted);

permission.Assert();

A number of the applications that use the class library may not have the necessary permissions to open the network socket connections. Therefore, you are required to withdraw the assertion. Which of the following code segments will you use to accomplish the task?


A.

permission.PermitOnly();


B.

CodeAccessPermission.RevertDeny();


C.

permission.Deny();


D.

CodeAccessPermission.RevertAssert();


E.

permission.Demand();


Get Premium GSSP-.NET Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.