The 'NET Framework 2'0 - PowerPoint PPT Presentation

1 / 28
About This Presentation
Title:

The 'NET Framework 2'0

Description:

Themes for consistent appearance. Adaptive-Rendering for Browsers ... ADO.NET New Features. ASP.NET New Features. Windows Forms New Features. XML Support New Features ... – PowerPoint PPT presentation

Number of Views:68
Avg rating:3.0/5.0
Slides: 29
Provided by: JBar1
Category:
Tags: net | framework | themes | windows | xp

less

Transcript and Presenter's Notes

Title: The 'NET Framework 2'0


1
The .NET Framework 2.0
  • What's new?

2
Overview
  • Generic New Features
  • ADO.NET New Features
  • ASP.NET New Features
  • Windows Forms New Features
  • XML Support New Features

3
Generic New Features
  • 64-bit support
  • Making efficient use of new generation 64-bit
    computers
  • ACL Support
  • Create and modify access control lists
  • New members utilizing ACLs added to
    security-prone classes

4
Authenticated Streams
  • NegotiateStream
  • SSLStream
  • Support
  • Mutual authentication
  • Data encryption
  • Data signing

5
COM Interop Services
  • Llimited number of handles referencing critical
    operating system resources manipulated through
    two new classes
  • SafeHandle
  • CriticalHandle
  • Marshaling improvements
  • ability to wrap native function pointers into
    delegates
  • ability to marshal fixed-size arrays of
    structures inside structures.
  • Faster call performance between applications in
    different application domains
  • Type Library tools eliminate dependency on the
    registry to resolve type library references.

6
Console Class Additions
  • Console window dimensions
  • Screen buffer size
  • Smooth simple animations support
  • Readkey implementation
  • Foreground and background colors
  • Cursor size and visibility
  • Console beep frequency and duration

7
Data Protection API
  • A new API providing encryption without needing
    PInvoke
  • E.g. Password encryption
  • Ability to encrypt memory blocks on Windows
    Server 2003 and later

8
Debugging
  • Display Attributes
  • Which members of a class to display whilst
    debugging
  • Edit and Continue Support
  • Ability to change code during execution

9
Network Connectivity
  • Ability to respond to network interface changes
  • Disconnected cable
  • Wireless LAN out of range
  • Hardware failure
  • Example sales reps application dynamically
    saving to database server or local storage
    according to network status

10
Distributed Computing
  • Support for
  • FTP Client requests
  • Caching of HTTP resources
  • Automatic proxy discovery
  • Net traffic and statistical information
  • HTTPWebListener
  • a Web Server Class
  • On Win XP SP2 or Win Server 2003

11
Distributed Computing (cont.)
  • TCP channel supports
  • Authentication
  • Encryption
  • Load balancing

12
Generics
  • Templates allowing type declarations and
    definitions using unspecified or generic types
  • Actual types are specified on use
  • Reflection support for Generic types and methods

13
Generics Example
  • public class MyListltTgt
  • private Node head
  • private class Node
  • private Node next
  • private T data
  • public Node(T t) next null data t
  • public void AddHead(T t)
  • Node n new Node(t) n.Next head head n

USAGE EXAMPLE MyListltintgt list new
MyListltintgt()for (int x 0 x lt 10 x)
list.AddHead(x)
14
Globalization
  • Support for Custom Cultures
  • Unicode-byte mapping failures can be compensated
    by a fallback feature provided in the System.Text
    namespace
  • Faster UTF-8 support
  • Supports latest Unicode Normalization for
    equivalence comparisons

15
I/O Enhancements
  • Read and write data with GZIP compression
  • Improvements on text file I/O
  • Improvements on acquisition of
  • drive information
  • TCP and UDP Network traffic
  • Network adapter information (like ipconfig)
  • Remote computer accessibility (like ping)

16
Ping Example
  • Ping pingSender new Ping ()
  • PingOptions options new PingOptions ()
  • string data "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  • byte buffer Encoding.ASCII.GetBytes (data)
  • int timeout 120
  • PingReply reply pingSender.Send(args0,buffer,t
    imeout, options)
  • if (reply.Status IPStatus.Success)
  • Console.WriteLine ("Address 0",
    reply.Address.ToString ())
  • Console.WriteLine ("RoundTrip time 0",
    reply.RoundTripTime)
  • Console.WriteLine ("Time to live 0",
    reply.Options.Ttl)
  • Console.WriteLine ("Buffer size 0",
    reply.Buffer.Length)

17
Further Enhancements
  • Programmatic Control web resource Caching
  • Additional data provided in SecurityException
    class
  • Serial I/O support
  • SMTP Support (also for Win Forms)
  • Strongly-typed Resource support

18
Version Tolerant Serialization
  • ltOptionalField(VersionAdded2)gt _
  • Private _age As Integer
  • ltOnDeserialized()gt _
  • Private Sub OnDeserialized(ByVal context As
    StreamingContext)
  • If _age 0 Then
  • _age DateTime.Now.Year - _birthDate.Year
  • If DateTime.Now.DayOfYear lt _birthDate.DayOfYear
    Then
  • _age - 1
  • End If
  • End If

19
More Enhancements
  • Semaphore class for resource counting in
    Threading
  • Filtering trace data from I/O and system events
  • New System.Transactions namespace
  • Web Service asynchronous invocation using an
    event-based paradigm.
  • Support for SOAP 1.2 for XML Web Services

20
New Features in
  • Event Log management
  • Certificate Management
  • FTP Client Support

21
New in ADO.NET
  • Finding active instances of SQL Server 2000 or
    later on your network
  • Asynchronous database operations
  • Multiple SQLDataReaders per connection
  • Bulk copy operations
  • User Defined Types support

22
More ADO.NET New Features
  • Work in XML with SQL Server
  • SQL Data Provider Statistics
  • Batch processing of Dataset updates
  • DataTableReader
  • a DataReader on a Dataset

23
ASP.NET New Site Management Features
  • Manage application settings using the Web
    Administration Tool
  • Special folders Code, Data, Resources
  • XML-based Site Navigation to create menus and
    treeviews automatically
  • Automatic site statistic tracking

24
ASP.NET Page Design Enhancements
  • Master Pages for consistent layouts
  • Themes for consistent appearance
  • Adaptive-Rendering for Browsers
  • Support for partial classes as a new code-behind
    model
  • Customizing Web pages with Web parts discrete
    pieces of functionality
  • User-specific profiles

25
New Web Controls
  • GridView
  • TreeView
  • Navigation Controls
  • Security controls
  • Graphics
  • Statistics
  • Implementation of HTML elements
  • FileUpload, ImageMap, Hidden

26
New Windows Forms Features
  • ClickOnce Deployment
  • Non-admins can install self-contained
    applications
  • incremental updates
  • Application Settings
  • User-specific information
  • Simplified Data binding of controls
  • DataConnector
  • New Controls
  • Toolstrip,MaskedTextBox,SoundPlayer,SplitContainer
  • Active Document Hosting (Office Documents)
  • Layout Panels
  • TableLayout and FlowLayout

27
New XML Support Features
  • Support for
  • XQuery
  • XPath
  • Type Support in XMLReaders/Writers
  • Node values as Common Types

28
Review
  • Generic New Features
  • ADO.NET New Features
  • ASP.NET New Features
  • Windows Forms New Features
  • XML Support New Features
Write a Comment
User Comments (0)
About PowerShow.com