当前位置:MCPD(70-511)题库

问题:

[多选]

You use Microsoft .NET Framework 4 to create a Windows Forms application. 
You add a new class named Customer to the application.  
You select the Customer class to create a new object data source. 
You add the following components to a Windows Form: 
A BindingSource component named customerBindingSource that is data-bound to the Customer object data source.
A set of TextBox controls to display and edit the Customer object properties.
Each TextBox control is data-bound to a property of the customerBindingSource component. 
An ErrorProvider component named errorProvider that validates the input values for each TextBox control. 
You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component. 
Which two actions should you perform?()

A . Implement the validation rules inside the Validating event handler of each TextBox control by throwing an exception when the value is invalid.
B . Implement the validation rules inside the TextChanged event handler of each TextBox control by throwing an exception when the value is invalid.
C . Implement the validation rules inside the setter of each property of the Customer class by throwing an exception when the value is invalid.
D . Add the following code segment to the InitializeComponent method of the Windows Form. this.errorProvider.DataSource = this.customerBindingSource;
E . Add the following code segment to the InitializeComponent method of the Windows Form. this.errorProvider.DataSource = this.customerBindingSource.DataSource; this.errorProvider.DataMember = this.customerBindingSource.DataMember

建筑业企业信用档案包括() A.企业基本情况、资质 。 B.工程质量 。 C.合同履约 。 D.企业人员信用 。 E.社会投诉与违法行为。 在空气中COG的着火温度为()。 500℃~550℃。 600℃~700℃。 800℃以上。 精子活率 You are defining a class named MyClass that contains several child objects. MyClass contains a method named ProcessChildren that performs actions on the child objects.MyClass objects will be serializable.You need to ensure that the ProcessChildren method is executed after the MyClass object and all its child objects are reconstructed. Which two actions should you perform?() Apply the OnDeserializing attribute to the ProcessChildren method.。 Specify that MyClass implements the IDeserializationCallback interface.。 Specify that MyClass inherits from the ObjectManager class.。 Apply the OnSerialized attribute to the ProcessChildren method.。 Create a GetObjectData method that calls ProcessChildren.。 Create an OnDeserialization method that calls ProcessChildren.。 试述行政赔偿诉讼与刑事赔偿诉讼的区别。

You use Microsoft .NET Framework 4 to create a Windows Forms application. 
You add a new class named Customer to the application.  
You select the Customer class to create a new object data source. 
You add the following components to a Windows Form: 
A BindingSource component named customerBindingSource that is data-bound to the Customer object data source.
A set of TextBox controls to display and edit the Customer object properties.
Each TextBox control is data-bound to a property of the customerBindingSource component. 
An ErrorProvider component named errorProvider that validates the input values for each TextBox control. 
You need to ensure that the input data for each TextBox control is automatically validated by using the ErrorProvider component. 
Which two actions should you perform?()

参考答案:

  参考解析

本题暂无解析

在线 客服

相关内容

相关标签