Which of the following methods of the PrincipalPermission class will he use to accomplish this?

Patrick works as a Software Developer for GenTech Inc. He develops an application, named App1, using Visual C# .NET. He implements security using the security classes of the .NET Framework. He defines the following statements in the application:

PrincipalPermission Principal_Perm1 = new PrincipalPermission("Nick", "General

Manager");

PrincipalPermission Principal_Perm2 = new PrincipalPermission("Jack", "Accountant");

Patrick wants to check whether all demands that succeed for Principal_Perm1 also succeed for Principal_Perm2.

Which of the following methods of the PrincipalPermission class will he use to accomplish this?
A . Intersect
B . IsSubSetOf
C . IsUnrestricted
D . Union

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments