单项选择题
You are creating an assembly named Assembly1.Assembly1 contains a public method. The global cache contains a second assembly named Assembly2.You must ensure that the public method is only called from Assembly2.Which permission class should you use?()
A.GacIdentity Permission
B.Publisher Identity Permission
C.Data Protection Permission
D.Strong Name Identity Permission
相关考题
-
单项选择题
您正在Certkiller-WS554开发.NET Framework2.0 Windows窗体应用程序。应用程序必须提供支持多种语言和区域差异。您需要定义基于现有的文化和区域的自定义区域性。管理用户会在应用程序部署之前的最终用户的计算机上安装自定义区域性。并且,您需要选择要使用的类。你应该做什么?()
A.应使用CultureAndRegionInfoBuilder类
B.应使用CustomAttributeBuilder类
C.应使用RegioInfo类
D.应使用CultureInfo类 -
单项选择题
Youneedtocallanunmanagedfunctionfromyourmanagedcodebyusingplatforminvokeservices.Whatshouldyoudo?()
A.Create a class to hold DLL functions and then create prototype methods by using managed code.
B.Register your assembly by using COM and then reference your managed code from COM
C.Export a type library for your managed code.
D.Import a type library as an assembly and then create instances of COM object. -
单项选择题
YouuseReflectiontoobtaininformationaboutamethodnamedMyMethod.YouneedtoascertainwhetherMyMethodisaccessibletoaderivedclass.Whatshouldyoudo?()
A.Call the IsAssembly property of the MethodInfo class.
B.Call the IsVirtual property of the MethodInfo class.
C.Call the IsStatic property of the MethodInfo class.
D.Call the IsFamily property of the MethodInfo class.
