Reference Ldv
.NET Framework Class Library, OleDbCommand Class Visual Basic .NET Framework Class Library, OleDbCommand Members .NET Framework Class Library, CommandType Enumeration Visual Basic B We cannot use the Text CommandType if we want to execute a stored procedure. The StoredProcedure CommandType should be used instead. D The StoredProcedure, not the TableDirect, CommandType should be used if we want to use a stored procecure in the command string. E The CommandType property of OleDBCommand gets or...
You must deploy your assembly on the COM application to a client computer You
A. Create a strong name of the assembly by using the Strong Name tool Sn.exe . B. Generate a registry file for the assembly by using the Assembly Registration tool Regasm.exe Register the file on the client computer. C. Generate a type library for the assembly by using the Type Library Importer Tlbimp.exe . Register the file on the client computer. D. Deploy the assembly to the global assembly cache on the client computer. Add a reference to the assembly in the COM client application....
Which additional code segment should you use
_ PrincipalPolicy.WindowsPrincipal Dim principal As WindowsPrincipal _ CType Thread.CurrentPrincipal, WindowsPrincipal _ PrincipalPolicy.WindowsPrincipal Dim principal As WindowsPrincipal _ CType Thread.CurrentPrincipal, WindowsPrincipal C. Dim identity As WindowsIdentity Dim principal As New WindowsPrincipal identity D. Dim identity As WindowsIdentity _ WindowsIdentity.GetAnonymous Dim principal As New WindowsPrincipal identity Explanation The WindowsPrincipal Class allows code to check the...
Question No 101
You develop a Windows-based application TestKingInvoice that enables users to enter and edit customer orders. TestKingInvoice contains a DataSet object named orderEntryDataSet and DataTable object named orderDataTable and orderDetailDataTable. The orderDetailDataTable requires two columns to make a unique primary key. You need to define a primary key for orderDetailDataTable. What should you do A. Set the DataTable.PrimaryKey property to a string value that lists the column names that make the...
You must ensure that all resources used by TestKingContact are properly
A. In Contact, create a Sub procedure named Finalize to override System.Object.Finalize. Place the appropriate cleanup code in the Finalize procedure and call MyBase.Finalize. B. In Contact, create a Sub procedure named Closed. Place the appropriate cleanup code in the Closed procedure. C. Implement the Dispose method of the IDisposable interface. Place the appropriate cleanup code in the implemented Dispose method. Call the Dispose method of your form before releasing the reference. D....
You develop a Windowsbased order entry application TestKingEntry by using
The first entry specifies the total number of items in the customer order, as well as the number of items that can be supplied immediately from available stock. The second entry records backorder information, and specifies the number of items that must be supplied when new stock becomes available. Backorder processing is handled by a separate component. You must ensure that all order information in the DataSet object is captured and passed to this component. To do so, you need to create a new...
Answer C Explanation
To meet the required restrictions on the Benefits database table, the EmployeeInformation table, and the custom code, we must use the Inherits statement 1 HR inherits from the root form 3 Vacation inherits from Benefits. 4 EmployeeInformation inherits from HR. All forms should include code to access the general HR database. Is met by the fact that all forms inherits from HR. Only forms used by the Benefits subdivision should have access to the Benefits database table. Is met by the fact that...
You use Visual Studio NET to develop a Windowsbased application named Advocate
Namespace Fabrikam.Buslayer Public Class Client Public Function GetPhone clientID As Integer As String The Client class is invoked from ARA by using the following code segment Private Sub SetPhoneNumber ByVal PostalCode As String Dim client as New Client TextBox1.Text client.GetPhone postalCode End Sub End Class When you try to build your project, you receive the following error message Type 'Client' is not defined. What are two possible ways to correct this problem Each correct answer presents...
Reference Drv
Visual Basic and Visual C Concepts, Changing the Borders of Windows Forms .NET Framework Class Library, Form.MinimizeBox Property Visual Basic .NET Framework Class Library, Form.MaximizeBox Property Visual Basic You develop a Windows-based application named TestKingOrders. You implement the Trace object within your application code. You will use this object to record application information, such as errors and performance data, in a log file. You must have the ability to enable and disable...