单项选择题
You are developing an application that dynamically loads assemblies from an application directory. You need to write a code segment that loads an assembly named Company1.dll into the current application domain. Which code segment should you use?()
A.A
B.B
C.C
D.D
相关考题
-
单项选择题
您需要生成一个语言代码和地区代码的报告列表。使用哪个代码来实现?()
A.
B.
C.
D. -
多项选择题
You develop a service application named FileService. You deploy the service application to multiple servers on your network.You implement the following code segment. (Line numbers are included for reference only.) You need to develop a routine that will start FileService if it stops. The routine must start FileService on the server identified by the serverName input parameter.Which two lines of code should you add to the code segment?()
A.Insert the following line of code between lines 03 and 04: crtl.ServiceName = serverName;
B.Insert the following line of code between lines 03 and 04: crtl.MachineName = serverName;
C.Insert the following line of code between lines 03 and 04: crtl.Site.Name = serverName;
D.Insert the following line of code between lines 04 and 05: crtl.Continue();
E.Insert the following line of code between lines 04 and 05: crtl.Start();
F.Insert the following line of code between lines 04 and 05: crtl.ExecuteCommand(0); -
单项选择题
您需要通过使用平台调用服务从托管代码中调用非托管函数。您应该做些什么?()
A.创建一个类支持DLL函数,然后使用托管代码创建原型方法。
B.使用COM注册您的程序集,然后从COM中参考您的托管代码。
C.为托管代码创建一个类库。
D.导入一个类库。然后创建COM对象的实例
