多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

你正在创建一个自定义服务器控件,并且你需要此控件支持在Visual Studio 2005设计器中使用。为此,你创建了两个类:一个是从Composite Control继承的myControl类,另一个是从Composite ControlDesigner继承的myControlDesigner类。你需要把myControl和myControlDesigner进行关联。下面那一个可以正确达到此目的?()

  • A、[Designer(myControlDesigner)] public class myControl: CompositeControl
  • B、[Designer(typeof(myControl))] public class myControlDesigner: CompositeControlDesigner
  • C、[Designer(myControl)] public class myControlDesigner: CompositeControlDesigner
  • D、[Designer(typeof(myControlDesigner))] public class myControl: CompositeControl
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题