题目内容

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();

查看答案
更多问题

宋词在风格上可以分成几派?举例说明各派的主要特征?

自营贷款的风险由贷款人承担。

A. 正确
B. 错误

动车组是否可以附挂回送过渡车?

一条TPN最多可以挂()个TPN节点。

A. 20
B. 64
C. 32
D. 10

答案查题题库