单项选择题
为应用程序开发人员上班 Certkiller.com。
您要创建一个新的安全策略,为应用程序域,必须实施新的 Certkiller.com 安全策略。
您编写这样的代码段:
PolicyLevel policy = PolicyLevel.CreateAppDomainLevel();
PolicyStatement noTrustStatement = PolicyStatement (新策略。GetNamedPermissionSet("Nothing")) ;
PolicyStatement fullTrustStatement =
PolicyStatement (新的政策。GetNamedPermissionSet("FullTrust")) ;
你现在必须确保所有加载程序集默认为 Nothing 权限集。
此外,如果程序集来自受信任的区域,您的安全策略必须授予程序集 FullTrust 权限集。您必须创建要执行此操作的代码组。
选择代码段,将实现这一目标。()
A.
B.
C.
D.
点击查看答案
相关考题
-
单项选择题
You need to write a code segment that transfers the contents of a byte array named dataToSend by using a NetworkStream object named netStream. You need to use a cache of size 8,192 bytes. Which code segment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
为应用程序开发人员上班 Certkiller.com。 您正在开发一种新的方法,必须对机密数据进行加密。 该方法必须使用数据加密标准 (DES) 算法。您新的方法将这些参数: 1.一个字节数组,命名,必须通过应用的 DES 算法加密的消息。 2.一把钥匙,指定的键,将用于对数据进行加密。 3.初始化向量,名为第四。 一旦数据加密的它必须添加到 MemoryStream 对象。 选择将加密指定的数据并将其添加到 MemoryStream 对象的代码段。()
A.
B.
C.
D. -
单项选择题
You need to write a code segment that transfers the first 80 bytes from a stream variable named stream1 into a new byte array named byteArray. You also need to ensure that the code segment assigns the number of bytes that are transferred to an integer variable named bytesTransferred. Which code segment should you use?()
A.A
B.B
C.C
D.D
