This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / Who know this C# question.You have a assembly A, A contains a public method. The global cache contains a second assembly B, you must ensure that the public method is only called from B. which permission class should you use;
a. GacIdentityPermission
b.PublisherIdentityPermission
c.DataProtectionPermission
d.SrongNameIdentityPermission
-dzhu(Daniel);
2007-3-10
{316}
(#3545824@0)
-
D. Only strong name is used as assembly's ID. So you need create a strong name, associate the strong name to assembly B. Set SrongNameIdentityPermission with the strong name to the public method in assembly A.
-tjhong(TjHong);
2007-3-10
(#3546036@0)