black

MCPD(70-536)

登录

单项选择题

You are developing a class library that will open the network socket connections to computers on the network. You will deploy the class library to the global assembly cache and grant it full trust. You write the following code to ensure usage of the socket connections. 
SocketPermission permission =  
new SocketPermission(PermissionState.Unrestricted); 
permission.Assert();
Some of the applications that use the class library might not have the necessary permissions to open the network socket connections.You need to cancel the assertion.
Which code segment should you use?()

A.CodeAccessPermission.RevertAssert();
B.CodeAccessPermission.RevertDeny();
C.permission.Deny();
D.permission.PermitOnly();

相关考题

多项选择题 你正在定义个一叫做Certkiller的类,这个类包含如下内容. Certkiller类包含一个可以再对象上执行的叫做ProcessChildren的方法。 Cerkiller类的对象可以被序列化()

单项选择题 You are writing an application that uses isolated storage to store user preferences. The application uses multiple assemblies. Multiple users will use this application on the same computer.You need to create a directory named Preferences in the isolated storage area that is scoped to the current Microsoft Windows identity and assembly. Which code segment should you use?()

单项选择题 你是Certkiller.com网站的一名程序开发人员,你正在开发一个能够访问系统环境变量的类库。你必须某一个方法,方法的功能是如果排在调用堆栈前列的调用者在没有权限的情况下调用这个方法能够引发一个运行时安全异常。 请选择哪个方法能实现这个效果?()

All Rights Reserved 版权所有©考试题库网(kstiku.com)

备案号:湘ICP备14005140号-3

经营许可证号:湘B2-20140064