2023年全國碩士研究生考試考研英語一試題真題(含答案詳解+作文范文)_第1頁
已閱讀1頁,還剩11頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、<p>  .NET Compact Framework 2.0中的新事物</p><p><b>  介紹</b></p><p>  .NET Compact Framework 2.0版在以前版本——.NET Compact Framework1.0版——上提供許多改善。雖然普遍改善,但他們都集中在共同的目標(biāo)——改進(jìn)開發(fā)商生產(chǎn)力、以完整的.NET Fr

2、amwork提供更強(qiáng)的兼容性,以及加大對設(shè)備特性的支持。這篇文章提供一個.NET Compact Framework2.0的變動和改進(jìn)的高水平的概要。</p><p><b>  用戶界面</b></p><p>  相關(guān)的靈活的設(shè)備顯示器的小尺寸要求:應(yīng)用程序高效率地使用可用空間。這在過去是要求開發(fā)商花費(fèi)很多時間來設(shè)計和實施應(yīng)用的用戶界面。最近的在靈活的顯示能力方面

3、的進(jìn)步,譬如高分辨率和多方位支持,使得用戶界面發(fā)展的工作更具挑戰(zhàn)性。為了簡化創(chuàng)造應(yīng)用用戶界面的任務(wù),.NET Compact Framework2.0提供許多關(guān)于這方面描述的新特性。</p><p><b>  窗口形式控制</b></p><p>  存在于用戶界面中心的是控制;.NET Compact Framework2.0提供了很多新的控制。這些新控制由除了特

4、別針對設(shè)備之外的控制組成。這種控制是.NET Compact Framework有的與.NET Framework一樣充分的控制。</p><p>  MonthCalendar</p><p>  MonthCalendar控制是提供日期顯示的可定制的日歷控制,而且是有利于為用戶提供一個圖解方式來精選日期。</p><p>  DateTimePicker<

5、/p><p>  DateTimePicker控制是為顯示和允許用戶進(jìn)入日期和時間信息的可定制的控制。由于它的一個緊湊顯示和圖解日期選擇格式的組合,它特別適用于靈活的設(shè)備應(yīng)用程序。當(dāng)顯示信息時,DateTimePicker控制與正文框相似;但是,當(dāng)用戶選擇了一個日期, 可能顯示一個類似于MonthCalendar控制的彈出日歷。</p><p>  WebBrowser </p>

6、<p>  WebBrowser控制壓縮了設(shè)備Web瀏覽器,并且提供強(qiáng)大的顯示能力和暴露很多事件。這些事件除了允許你的應(yīng)用程序提供對于這些事件的用戶化的行為,還允許你的應(yīng)用程序追蹤用戶與Web瀏覽器內(nèi)容的互動。</p><p>  Notification</p><p>  Notification控制壓縮了袖珍版?zhèn)€人電腦的通知特性,就是允許應(yīng)用程序寄給用戶一個沒有改變用戶當(dāng)

7、前活動的上下文的通知。通知文本可以是純文本或HTML。除顯示信息之外,通知可以通過包含在通知的HTML文本中的HTML按鈕和鏈接來接受用戶的輸入。</p><p>  DocumentList</p><p>  DocumentList控制為顯示和處理文件提供一個標(biāo)準(zhǔn)的機(jī)制,譬如當(dāng)打開Excel Mobile and Word Mobile中的使用的文件。DocumentList控制提供

8、給用戶操縱文件系統(tǒng)以及刪除、復(fù)制、行動和重命名的能力。用戶也可以用DocumentList控制通過紅外線發(fā)送電子郵件和發(fā)送文件到其它設(shè)備。</p><p>  Smartphone中的DataGrid </p><p>  Smartphone現(xiàn)在支持DataGrid 控制。就像袖珍個人電腦,Smartphone中的DataGrid控制支持構(gòu)形的大小、多種顯示形式、數(shù)據(jù)捆綁、空值處理和跟蹤

9、用戶單元選擇的事件。</p><p><b>  LinkLabel</b></p><p>  LinkLabel控制是一個能顯示一個或更多超鏈接的標(biāo)簽控制。</p><p><b>  Splitter</b></p><p>  Splitter控制是一個提供恢復(fù)相接控制的能力的分離欄。<

10、;/p><p><b>  ToolBar</b></p><p>  ToolBar控制是能將圖像以按鈕形式顯示的Windows工具欄。</p><p><b>  用戶控制</b></p><p>  .NET Compact Framework2.0現(xiàn)在支持用戶控制。增加用戶控制的同時,.NET&

11、#160;Compact Framework 2.0應(yīng)用程序現(xiàn)在可以用Visual Studio 2005圖像化地創(chuàng)建控制,并且,就如完整的.NET Framework一樣,.NET Compact Framework2.0的用戶控制自動在控制工具箱出現(xiàn),而且可以用拖放安置在窗體上。</p><p><b>  顯示和布局管理</b></p><p&g

12、t;  現(xiàn)在可用的Windows Mobile窗體因素的廣泛多樣性,要求應(yīng)用程序開發(fā)者開發(fā)應(yīng)用程序用戶界面比以前更動態(tài)化。為了簡化創(chuàng)造動態(tài)用戶界面的任務(wù),.NET Compact Framework2.0提供許多新布局和管理特性。</p><p><b>  控制相接</b></p><p>  .NET Compact Framework2.0控制現(xiàn)在支持相接。相接

13、一個控制設(shè)置它與雙親控制的邊緣相反,即填充邊緣。因為雙親控制調(diào)整尺寸,相接控制自動調(diào)整尺寸來填充雙親控制指定的邊緣??刂埔部梢韵嘟犹钛b整個雙親。</p><p><b>  控制停滯</b></p><p>  .NET Compact Framework2.0控制也支持停滯。停滯控制識別,即控制的一邊或多邊應(yīng)該依然是與對應(yīng)的邊緣或雙親控制的邊緣保持的一個固定距離。因

14、為雙親控制調(diào)整尺寸,控制自動地調(diào)整尺寸,因此控制的停滯的一邊依然是與雙親控制的對應(yīng)的邊緣保持的適當(dāng)?shù)木嚯x。</p><p><b>  自動卷曲</b></p><p>  Form and Panel控制——除了繼承于ScrollableControl控制的其他控制——現(xiàn)在提供AutoScroll屬性。當(dāng)設(shè)置為真,控制自動地提供一個卷曲欄來允許用戶卷曲到任一個在控制

15、可視范圍之外的孩子控制。</p><p><b>  自動縮放比例</b></p><p>  所有ContainerControl起源的控制,譬如Form控制,現(xiàn)在提供AutoScaleMode屬性。AutoScaleMode屬性指出當(dāng)控制在一個不同于最初它設(shè)計的決議上顯示時,控制應(yīng)該如何反映。當(dāng)設(shè)置為AutoScrollMode.Dpi時,容器控制的所有孩子控制相

16、應(yīng)地與執(zhí)行時間的顯示決議相匹配。AutoScaleMode.None的值表明縮放比例不會自動完成,這樣就使應(yīng)用程序有責(zé)任在不同的決議上準(zhǔn)確地提出。</p><p>  SuspendLayout和ResumeLayout</p><p>  .NET Compact Framework2.0 Control類現(xiàn)在支持SuspendLayout和ResumeLayout 方法。就像在完整的.

17、NETFramework中一樣,這些方法在與一個異于聚集布局事件關(guān)聯(lián),譬如改變一系列的孩子控制的位置或調(diào)整它們的尺寸。</p><p>  Graphics DpiX和DpiY屬性</p><p>  現(xiàn)在,Graphics類提供關(guān)于當(dāng)前設(shè)備顯示的決議的信息。DpiX 屬性顯示水平的每英寸像素的數(shù)量, 而且DpiY屬性顯示垂直的每英寸像素的數(shù)量。</p><p>&

18、lt;b>  自定義圖畫</b></p><p>  為了簡化豐富的用戶界面的創(chuàng)作,.NET Compact Framework2.0增加了很多特性。這些特性允許應(yīng)用程序更加容易運(yùn)用自定義圖畫。</p><p><b>  可旋轉(zhuǎn)的字體</b></p><p>  LogFont類添加到.NET Compact Framewo

19、rk2.0為在為在一個角度顯示文本提供支持,以及為合并其他文本作用提供支持。</p><p><b>  自定義筆</b></p><p>  現(xiàn)在,應(yīng)用程序可以創(chuàng)造具體顏色和大小的筆。</p><p><b>  位圖</b></p><p>  .NET Compact Framework2.0

20、為用位圖工作提供改進(jìn)。這種改進(jìn)包括:當(dāng)創(chuàng)建位圖和有能力將一個位圖保存到一個文件或流時,提供更多的選擇。</p><p>  應(yīng)用程序可以運(yùn)用新加入的BitmapData類,通過LockBits和UnlockBits方法的聯(lián)合更加容易觀察和操作位圖。因為應(yīng)用程序需要在被處理的和自身的代碼之間分享位圖,現(xiàn)在,你可以通過GetHbitmap方法檢索一個自身位圖對象的句柄。</p><p><

21、;b>  DirectX</b></p><p>  Windows Mobile 5.0軟件通過執(zhí)行DirectX應(yīng)用程序設(shè)計界面(APIs)包含二維和三維的圖畫特性。因為.NET Compact Framework 2.0的開發(fā)商——瞄準(zhǔn)Windows Mobile 5.0基礎(chǔ)設(shè)備的人,DirectX特性集有能力貫穿包含在

22、“Microsoft.Windows.DirectX”命名域中的類和對應(yīng)的匯編。</p><p><b>  鍵盤管理</b></p><p>  現(xiàn)在,靈活的設(shè)備的一個增長數(shù)字包括鍵盤。為了允許管理開發(fā)商利用可利用的鍵盤,.NET Compact Framework2.0為鍵盤提供改進(jìn)的支持。 </p><p>  注:在這部分提及的一些特性

23、被作為一部分加到.NET Compact Framework1.0服務(wù)包,但在這里提它們,大家就肯定知道它們也是可用的。</p><p><b>  制表符支持</b></p><p>  現(xiàn)在,控制支持制表符命令以允許應(yīng)用程序用戶通過按制表符鍵在控制之間切換。</p><p>  Keyboard Events和Form.KeyPreview

24、</p><p>  現(xiàn)在,控制接受KeyUp、KeyDown和KeyPress事件。此外,現(xiàn)在,F(xiàn)orm控制提供KeyPreview屬性。當(dāng)設(shè)置為假, keyboard事件就會被直接發(fā)到控制。當(dāng)KeyPreview被設(shè)置為真,所有keyboard事件就會被發(fā)到Form實例以等待被發(fā)送到當(dāng)前聚焦的控制。通過在Form實例的對應(yīng)的事件處理設(shè)置KeyPressEventArgs屬性為真,F(xiàn)orm實例可以防止事件以焦點(diǎn)

25、被送到控制。</p><p><b>  數(shù)據(jù)</b></p><p>  當(dāng)然,數(shù)據(jù)是任一個應(yīng)用程序的重要部份。不管有無關(guān)系,針對數(shù)據(jù)的類在必需訪問和運(yùn)作以數(shù)據(jù)編程的努力上的水平有直接效應(yīng)。.NET CompactFramework2.0 除了為現(xiàn)存的類提供新特性,還提供很多新數(shù)據(jù)類。</p><p>  Updatable, Scrolla

26、ble Access to SQL Server 2005 Mobile Edition </p><p>  .NET Compact Framework2.0為進(jìn)入SQL Server 2005 Mobile Edition (SQL Mobile)數(shù)據(jù)庫——SqlCeResultSet提供新類。新的SqlCeResultSet類提供卷曲和可更新的直接存取SQ

27、L Mobile數(shù)據(jù)庫。這個存取為存取SQL Mobile數(shù)據(jù)提供一種比DatasSet類更加快速和更加資源高效率的解決方案。和DataSet類一樣,SqlCeResultSet可以作為數(shù)據(jù)綁定資源使用。</p><p><b>  DataSet</b></p><p>  DataSet類和相關(guān)的類提供很多新特性。這些特性不僅提供改進(jìn)的功能而且?guī)?NET Com

28、pact Framework的 DataSet類與整個.NET Framework更多協(xié)調(diào)。</p><p>  GetChanges和Merge Methods</p><p>  .NET Compact Framework2.0 將GetChanges和Merge方法增加到DataSet類。 GetChanges方法返回一個包含所有自從最后訪問AcceptChanges之后

29、的所有變動的DataSet的副本。返回的DataSet優(yōu)化為合并。</p><p>  DataSet方法將DataSet合并到另一個里。它對于將變動從一個由一個GetChanges方法返回的DataSet合并到另一個特別有用。</p><p><b>  Copy方法</b></p><p>  現(xiàn)在,. NET Compact Framew

30、ork 的DataSet類提供Copy方法。Copy方法返回包含與原物相同的結(jié)構(gòu)和數(shù)據(jù)的新DataSet。</p><p>  DataTables Serialization</p><p>  現(xiàn)在,DataTable類提供WriteXml和ReadXml方法。這些方法提供各自的表的XML連載和非連載。而且,連載和非連載的支持的結(jié)合允許DataTables作為Web服務(wù)論點(diǎn)而通過。&l

31、t;/p><p><b>  XML</b></p><p>  .NET Compact Framework2.0對于與XML相關(guān)類提供了很多改進(jìn)。這些改進(jìn)不僅簡化運(yùn)用XML數(shù)據(jù)運(yùn)作的進(jìn)程,而且給.NET Compact Framework中XML相關(guān)類帶來更多與那些在整個.NET Framework中可用的資源的協(xié)調(diào)。</p><p>

32、;<b>  XPath支持</b></p><p>  現(xiàn)在,XmlDocument類支持SelectSingleNode和SelectNodes方法——二者都是提供用XPath搜索文檔的能力。</p><p><b>  XML連載</b></p><p>  .NET Compact Framework2.0與相關(guān)屬

33、性類一起增加XmlSerializer類,譬如XmlElement和XmlAttribute。用XmlSerializer,你可以從XML保存和恢復(fù)類,以及保存和恢復(fù)類到XML。</p><p>  新的XmlSerializer類也通過.NET Compact Framework2.0的Web代理基本類在內(nèi)部使用。新的XmlSerializer類充分提供通過.NET Compact Framework1.0在使

34、用的機(jī)制上極大地改善以連載和非連載Web服務(wù)器論點(diǎn),因此提供改進(jìn)的Web服務(wù)器訪問性能。</p><p><b>  XML 圖解</b></p><p>  現(xiàn)在,.NET Compact Framework2.0為用XML圖解文檔工作提供XmlSchema類。這些類也可以使用到動態(tài)地產(chǎn)生圖解。</p><p><b>  數(shù)據(jù)綁定

35、</b></p><p>  新的數(shù)據(jù)綁定類——BindingSource——包含在.NET Compact Framework2.0中。 BindingSource通常分在一個或更多數(shù)據(jù)綁定控制和一個數(shù)據(jù)綁定源之間。當(dāng)使用時,BindingSource類通過提供間接的層數(shù)和增加流動管理、改變事件以及更多來簡化數(shù)據(jù)綁定。</p><p><b>  通信</b&

36、gt;</p><p>  通信實際上是每個靈活的設(shè)備應(yīng)用程序的一個重要部份。.NET Compact Framework2.0增加了幾個新類以簡化共同的通信要求,同時提供整體的新能力。除新的通信類之外,.NET Compact Framework2.0還包括對現(xiàn)有的類的改善。</p><p><b>  Web服務(wù)</b></p><p> 

37、 就像之前提到的那樣,新的XmlSerializer類通過提供一個更加快速的Web服務(wù)器論點(diǎn)的XML連載和非連載而充分改進(jìn)了Web業(yè)務(wù)訪問性能。</p><p>  除性能改善之外,現(xiàn)在.NET Compact Framework2.0的Web服務(wù)器類為SOAP1.2版提供支持。</p><p><b>  MSMQ</b></p><p> 

38、 作為想利用MSMQ異步信息特性的應(yīng)用程序開發(fā)商,.NET Compact Framework2.0在“System.Messaging”命名域中提供類。這些類為發(fā)送和接收包含使用事物創(chuàng)建基本操作的信息提供支持。</p><p><b>  連續(xù)端口</b></p><p>  為了減少當(dāng)用連續(xù)端口工作時必需的編程的努力,.NET Compact Framework2

39、.0 包含了SerialPort類。SerialPort類提供一個簡化的對連續(xù)通信端口的提取。這個端口提供很多簡化追蹤和配置連續(xù)端口的特性。連續(xù)端口還簡化以連續(xù)端口發(fā)送和接收數(shù)據(jù)——包括自動編碼和解碼數(shù)據(jù)發(fā)送和從端口接收數(shù)據(jù)。</p><p><b>  IPv6 支持</b></p><p>  現(xiàn)在,.NET Compact Framework2.0網(wǎng)絡(luò)類除了為I

40、Pv4支持外,還為IPv6提供支持。</p><p><b>  結(jié)論</b></p><p>  希望這個摘要通過使用.NET Compact Framework2.0給了你一個關(guān)于有利于靈活設(shè)備開發(fā)商的許多新特性。關(guān)于那些你想要的更多的細(xì)節(jié)的那些主題,你可以檢索文獻(xiàn)和MSDN。這篇文章里提到的有關(guān)每個主題的詳細(xì)文章在或者很快就會在MSDN上。</p>

41、<p>  附件2:外文原文(復(fù)印件)</p><p>  What's New in the .NET Compact Framework 2.0</p><p>  Introduction</p><p>  The .NET Compact Framework version 2.0 offers many

42、improvements over its predecessor, the .NET Compact Framework version 1.0. Although the improvements are widespread, they all focus on the common goals of improving developer productivity, providing greate

43、r compatibility with the full .NET Framework and increasing support for device features. This article provides a high-level summary of the .NET Compact Framework 2.0 changes and enhancements.</p>

44、;<p>  User Interface</p><p>  The relatively small size of smart device displays requires that applications use the available space efficiently, which historically has required that developers spend

45、a great deal of time designing and implementing an application's user interface. Recent advances in smart display capabilities, such as high-resolution and multiple orientation support have made the job of user inter

46、face development even more challenging. To simplify the task of creating application user interfaces, the .NET Comp</p><p>  Windows Forms Controls</p><p>  At the heart of the user interfa

47、ce are the controls; the .NET Compact Framework 2.0 provides a number of new controls. These new controls consist of controls that the .NET Compact Framework has in common with the full .NET 

48、;Framework in addition to controls that are specific to devices.</p><p>  MonthCalendar</p><p>  The MonthCalendar control is a customizable calendar control that provides a visual display of da

49、tes and is useful for providing a graphical way for users to select dates. </p><p>  DateTimePicker</p><p>  The DateTimePicker control is a customizable control for displaying and allowing user

50、s to enter date and time information. It is especially well suited for smart device applications due to its combination of a compact display and graphical date selection format. When displaying information, the DateTimeP

51、icker control renders similar to a text box; however, when the user is selecting a date, a pop-up calendar similar to the MonthCalendar control can be displayed. </p><p>  WebBrowser </p><p>  T

52、he WebBrowser control encapsulates the device Web browser, providing rich display capabilities and exposing a variety of events that allow your application to both track the user's interaction with the Web browser co

53、ntent in addition to allowing your application to provide customized behaviors for these events. </p><p>  Notification</p><p>  The Notification control encapsulates the Pocket PC's no

54、tification feature that allows applications to send the user a notification without changing the context of the user's current activity. The notification text can be plain text or HTML. In addition to displaying info

55、rmation, notifications can receive input from the user by including HTML buttons and links in the HTML text of the notification.</p><p>  DocumentList</p><p>  The DocumentList control provides

56、a standard mechanism for displaying and managing files such as that which is used when opening files in Excel Mobile and Word Mobile. The DocumentList control provides the user with the ability to navigate around the fil

57、e system and to delete, copy, move, and rename files. The user can also use the DocumentList control to send e-mail messages and send files by means of infrared to other devices.</p><p>  DataGrid on Smartph

58、one</p><p>  Smartphone now supports the DataGrid control. Just like Pocket PC, the DataGrid control on Smartphone supports configurable column sizes, multiple display styles, data binding, null value h

59、andling, and events to track user cell selections.</p><p><b>  LinkLabel</b></p><p>  The LinkLabel control is a label control that is capable of displaying one or more hyperlinks.&l

60、t;/p><p><b>  Splitter</b></p><p>  The Splitter control is a splitter bar that provides resizing capability to docked controls.</p><p><b>  ToolBar</b></p&g

61、t;<p>  The ToolBar control is Windows toolbar that is capable of displaying images as buttons.</p><p>  User Controls</p><p>  The .NET Compact Framework 2.0 now supports

62、user controls. With the addition of user controls, .NET Compact Framework 2.0 applications can now create controls graphically within Visual Studio 2005 and, just as the full .NET Framework, the .NET&

63、#160;Compact Framework 2.0 user controls automatically appear on the control Toolbox and can be placed on forms by using drag-and-drop. </p><p>  Display and Layout Management</p><p> 

64、 The wide variety of Windows Mobile form factors that are now available requires that application developers develop application user interfaces to be much more dynamic than in the past. To simplify the task of creating

65、dynamic user interfaces, the .NET Compact Framework 2.0 provides many new layout and management features.</p><p>  Control Docking</p><p>  The .NET Compact Framework

66、60;2.0 controls now support docking. Docking a control places it against the edge of the parent control—filling that edge. As the parent control is resized, the docked control automatically resizes to always fill the spe

67、cified edge of the parent control. Controls can also be docked to fill the entire parent.</p><p>  Control Anchoring</p><p>  The .NET Compact Framework 2.0 controls also support

68、anchoring. Anchoring a control identifies that one or more sides of the control should remain a fixed distance from the corresponding edge or edges of the parent control. As the parent control is resized, the control aut

69、omatically resizes so the anchored sides of the control remain the appropriate distance from the corresponding edges of the parent control. </p><p>  Automatic Scrolling</p><p>  The Form and Pa

70、nel control—in addition to other controls that inherit from the ScrollableControl control—now provide the AutoScroll property. When set to true, the control automatically provides a scroll bar to allow the user to scroll

71、 to any child controls that are outside the control's visible boundary. </p><p>  Automatic Scaling</p><p>  All ContainerControl derived controls, such as the Form control, now provide the

72、AutoScaleMode property. The AutoScaleMode property indicates how the control should render when it is displayed on a resolution different than the resolution it was originally designed for. When set to AutoScrollMode.Dpi

73、, all child controls of the container control are scaled to match the runtime display's resolution. A value of AutoScaleMode.None indicates that no automatic scaling will be done, making the applicat</p><p

74、>  SuspendLayout and ResumeLayout</p><p>  The .NET Compact Framework 2.0 Control class now supports the SuspendLayout and ResumeLayout methods. Just as in the full .NET Framework, the

75、se methods are used in conjunction with one another to group multiple layout events, such as repositioning or resizing a series of child controls. </p><p>  Graphics DpiX and DpiY properties</p><p

76、>  The Graphics class now provides information as to the resolution of the current device display. The DpiX property indicates the number of horizontal dots per inch, and DpiY indicates the number of vertical dots per

77、 inch. </p><p>  Custom Drawing</p><p>  To simplify the creation of rich user interfaces, the .NET Compact Framework 2.0 has added a number of features that allow applications to

78、 much more easily handle custom drawing.</p><p>  Rotatable Fonts</p><p>  The addition of the LogFont class to the .NET Compact Framework 2.0 provides support for displaying text

79、 at an angle and for incorporating other text effects. </p><p>  Custom Pens</p><p>  Applications can now create pens of a specific color and size. </p><p><b>  Bitmaps</b

80、></p><p>  The .NET Compact Framework 2.0 provides many enhancements for working with bitmaps. Enhancements include providing more options when creating bitmaps and having the ability to sa

81、ve a bitmap to a file or stream. </p><p>  Applications can more easily view and manipulate bitmaps through the combination of the LockBits and UnlockBits methods with the newly added BitmapData class. For a

82、pplications needing to share bitmaps between managed and native code, you can now retrieve a handle to the native bitmap object through the GetHbitmap method.</p><p><b>  DirectX</b></p>&

83、lt;p>  Windows Mobile 5.0 software includes a number of rich two-dimensional and three-dimensional drawing features through its native implementation of the DirectX application programming interfaces (APIs).

84、 For .NET Compact Framework 2.0 developers who target Windows Mobile 5.0–based devices, the DirectX feature set is available through the classes contained in the "Microsoft.Windows.DirectX&q

85、uot; namespace and corresponding assembly.</p><p>  Keyboard Management</p><p>  An increasing number of smart devices now include keyboards. To allow managed developers to take advantage of the

86、 available keyboards,the .NET Compact Framework 2.0 provides enhanced support for keyboards. </p><p>  Note   Some of the features mentioned in this section were added as part o

87、f the .NET Compact Framework 1.0 service packs but are mentioned here to be sure that everyone is aware that they are available. </p><p>  Tab Support</p><p>  Controls now suppor

88、t a tab order allowing application users to move between controls by pressing the tab key. </p><p>  Keyboard Events and Form.KeyPreview</p><p>  Controls now receive KeyUp, KeyDown, and KeyPres

89、s events. In addition, the Form control now provides the KeyPreview property. When set to false, keyboard events are sent directly to the control. When KeyPreview is set to true, all keyboard events are sent to the Form

90、instance prior to being sent to the control that currently has focus. The Form instance can prevent an event from being sent to the control with focus by setting the KeyPressEventArgs.Handled property to true in the Form

91、 instance's </p><p><b>  Data</b></p><p>  Data is of course a central part of any application. Whether relational, data-oriented classes have a direct effect on the level of pro

92、gramming effort that is required to access and work with data. The .NET Compact Framework 2.0 provides a number of new data classes in addition to new features to existing classes.</p><p>  Up

93、datable, Scrollable Access to SQL Server 2005 Mobile Edition </p><p>  The .NET Compact Framework 2.0 provides a new class for accessing a SQL Server 2005 Mobile Edition (S

94、QL Mobile) database, SqlCeResultSet. The new SqlCeResultSet class provides scrolling and updatable access directly to the SQL Mobile database. This access provides a much faster and more resource-efficient solution

95、for accessing SQL Mobile data than the DataSet class. Like the DataSet class, SqlCeResultSet can be used as a data binding source.</p><p><b>  DataSet</b></p><p>  The DataSet class

96、and related classes provide a number of new features. These features not only provide enhanced functionality but also bring the .NET Compact Framework DataSet class more in line with that of the full .NET 

97、Framework.</p><p>  GetChanges and Merge Methods</p><p>  The .NET Compact Framework 2.0 adds the GetChanges and Merge methods to the DataSet class. The GetChanges method returns

98、a copy of DataSet that contains all of the changes since AcceptChanges was last called. The returned DataSet is optimized for merging.</p><p>  The Merge method merges one DataSet into another. It is particu

99、larly useful for merging changes from one DataSet, returned by the GetChanges method, into another. </p><p>  Copy Method</p><p>  The .NET Compact Framework DataSet class now provides

100、 the Copy method. The Copy method returns a new DataSet containing the same structure and data as the original.</p><p>  DataTables Serialization</p><p>  The DataTable class now provides the Wr

101、iteXml and ReadXml methods, which provide XML serialization and deserialization of individual tables. Also the addition of serialization and deserialization support allows DataTables to be passed as Web service arguments

102、.</p><p><b>  XML</b></p><p>  The .NET Compact Framework 2.0 provides a number of enhancements to the XML–related classes. These enhancements both simplify the proces

103、s of working with XML data and also bring the .NET Compact Framework XML–related classes much more in line with those available in the full .NET Framework.</p><p>  XPath Support</p>&l

104、t;p>  The XmlDocument class now supports the SelectSingleNode and SelectNodes methods—both of which provide the ability to search the document using XPath.</p><p>  XML Serialization</p><p> 

105、 The .NET Compact Framework 2.0 adds the XmlSerializer class along with the related attribute classes, such as XmlElement and XmlAttribute. Using XmlSerializer allows you to save and restore classes to and

106、 from XML.</p><p>  The new XmlSerializer class is also used internally by the .NET Compact Framework 2.0 Web service proxy base classes. The new XmlSerializer class provides substantially imp

107、roved performance over the mechanism used by the .NET Compact Framework 1.0 to serialize and deserialize Web service arguments thereby providing improved Web service call performance.</p><p> 

108、 XML Schema</p><p>  The .NET Compact Framework 2.0 now provides the XmlSchema class and related classes for working with XML schema documents. These classes can also be used to dynamically ge

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 眾賞文庫僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論