New Features of. NET Framework 4.5

Source: Internet
Author: User
Tags expression engine visual studio 2010

Today, I suddenly found that Microsoft has released the. NET Framework 4.5 Developer Preview version. The following are its new features. I will first publish the original article and then translate it when I have time.

[This documentation is for preview only, and is subject to change in later releases. Blank topics are supported as placeholders.]

This topic contains information about key features and improvements in the. NET Framework 4.5 Developer Preview. This topic does not provide comprehensive information and is subject to change.

New Features and improvements are described in the following sections:

  • . Net for Metro style apps

  • Core new features and Improvements

  • Web

  • Networking

  • Windows Presentation Foundation (WPF)

  • Windows Communication Foundation (WCF)

  • Windows Workflow Foundation (WF)

. Net
For Metro style apps

Metro style apps are designed for specific form factors and leverage the power of the Windows operating system. A subset of. net Framework is available for building Metro style apps for Windows using C # Or Visual Basic. this subset is called. net APIs
For Metro style apps. For more information about this subset, see. Net for Metro style apps.

Core
New Features and Improvements

The following features and improvements were added to the common language runtime and to. NET Framework classes:

  • Ability to limit how long the Regular Expression Engine will attempt to resolve a regular expression before it times out.

  • Ability to define the culture for an application domain.

  • Console support for Unicode (UTF-16) encoding.

  • Support for versioning of cultural string ordering and comparison data.

  • Better performance when retrieving resources.

  • Zip compression improvements to reduce the size of a compressed file.

  • Ability to customize a reflection context to override default reflection behavior through the customreflectioncontext class.

Managed extensibility framework (MEF)

The managed extensibility framework (MEF) provides the following new features:

  • Support for generic types.

  • Convention-based programming model that enables you to create parts based on naming conventions rather than attributes.

  • Multiple scopes.

Asynchronous file operations

In. net Framework 4.5 Developer Preview, new asynchronous features were added to the C # and Visual Basic ages. these features Add a task-based model for processing Ming asynchronous operations. to use this new model, use the asynchronous methods in
I/O classes.

Back to Top

Web

ASP. NET 4.5 Developer Preview templates des the following new features:

  • Support for new HTML5 form types.

  • Support for model binders in web forms. These let you bind data controls directly to data-access methods, and automatically convert user input to and from. NET Framework data types.

  • Support for unobtrusive Javascript in client-side validation scripts.

  • Improved handling of client script through bundling and minification for improved page performance.

  • Integrated encoding routines from the antixss Library (previously an external library) to protect from cross-site scripting attacks.

  • Support for websockets protocol.

  • Support for reading and writing HTTP requests and responses asynchronously.

  • Support for asynchronous modules and handlers.

  • Support for Content Distribution Network (CDN) fallback in the scriptmanager control.

For more information about these features, see what's new for ASP. NET 4.5 and web development in Visual Studio 11 developer
Preview.

Back to Top

Networking

The. NET Framework 4.5 Developer Preview provides a new programming interface for HTTP applications. For more information, see the new system. net. Http andsystem. net. http. headers namespaces.

Also, the following networking improvements are stored in the system. net, system. net. Mail,
And Related namespaces:

  • Improved internationalization and IPv6 support.

  • RFC-compliant URI support.

  • Support for Internationalized Domain Name (IDN) parsing.

  • Support for email address internationalization (EAI ).

Back to Top

Windows
Presentation Foundation (WPF)

In the. NET Framework 4.5 Developer Preview, Windows Presentation Foundation (WPF) contains changes and improvements in the following areas:

  • The new ribbon control, which enables you to implement a ribbon user interface that
    Hosts a quick access toolbar, application menu, and tabs.

  • The new inotifydataerrorinfo interface, which supports synchronous and asynchronous
    Data validation.

  • New features for the virtualizingpanel and dispatcher classes.

  • Improved performance when displaying large sets of grouped data, and by accessing collections on non-UI threads.

  • Data Binding to static properties, Data Binding to custom types that implement the icustomtypeprovider interface,
    And retrieval of data binding information from a binding expression.

  • Repositioning of data as the values change (live shaping ).

  • Better integration between WPF and Win32 user interface components.

  • Ability to check whether the data context for an item container is disconnected.

  • Ability to set the amount of time that shocould elapse between property changes and data source updates.

  • Improved support for implementing weak event patterns. Also, events can now accept Markup extensions.

For more information, see what's new in WPF version 4.5 Developer Preview.

Back to Top

Windows
Communication Foundation (WCF)

In the. NET Framework 4.5 Developer Preview, the following features have been added to make it simpler to write and maintain Windows Communication Foundation (WCF) applications:

  • Simplification of generated configuration files.

  • Support for contract-first development.

  • Ability to configure ASP. NET compatibility mode more easily.

  • Changes in default transport property values to reduce the likelihood that you will have to set them.

  • Updates to the xmldictionaryreaderquotas class to reduce the likelihood that you will
    Have to manually configure quotas for XML dictionary readers.

  • Validation of WCF configuration files by Visual Studio as part of the build process, so you can detect configuration errors before you run your application.

  • New asynchronous streaming support.

  • New HTTPS protocol mapping to make it easier to expose an endpoint over HTTPS with Internet Information Services (IIS ).

  • Ability to generate metadata in a single WSDL document by appending? Singlewsdl to the service URL.

  • Websockets support to enable true bidirectional communication over ports 80 and 443 with performance characteristics similar to the TCP transport.

  • Support for processing services in code.

  • XML editor tooltips.

  • Channelfactory caching support.

  • Binary encoder compression support.

For more information, see what's new in Windows Communication Foundation.

Back to Top

Windows
Workflow Foundation (WF)

Several new features have been added to Windows Workflow Foundation (WF) in the. NET Framework 4.5 Developer Preview. These new features include:

  • Ability to create state machine workflows.

  • Enhanced workflow designer features such as the following:

    • Enhanced workflow search capabilities in Visual Studio, including quick find and find in files.

    • Ability to automatically create a sequence activity when a second child activity is added to a container activity, and to include both activities in the sequence activity.

    • Panning support, which enables the visible portion of a workflow to be changed without using the scroll bars.

    • A new document outline view that shows the components of a workflow in a tree-style Outline View and lets you select a component in the document outlineview.

    • Ability to add annotations to activities.

    • Ability to define and consume activity delegates by using the workflow designer.

    • Auto-connect and auto-insert for activities and transitions in state machine and flowchart workflows.

  • Storage of the view State information for a workflow in a single element in the XAML file, so you can easily locate and edit the view State information.

  • A nopersistscope container activity to prevent child activities from persisting.

  • Support for C # expressions:

    • Workflow projects that use Visual Basic will use visual basic expressions, and C # Workflow projects will use C # expressions.

    • C # Workflow projects that were created in Visual Studio 2010 and that have visual basic expressions are compatible with C # Workflow projects that use C # expressions.

  • Versioning enhancements:

    • The new workflowidentity class, which provides a mapping between a persisted Workflow
      Instance and Its workflow definition.

    • Side-by-side execution of multiple workflow versions in the same host, including workflowservicehost.

    • In dynamic update, the ability to modify the definition of a persisted workflow instance.

  • Contract-first workflow service development, which provides support for Automatically Generating Activities to match an existing service contract.

For more information, see what's new in Windows Workflow Foundation.

Back to Top

See
Also

Conceptswhat's new in Visual Studio 11 developer previewwhat's new for ASP. net 4.5 and web development in Visual Studio 11 developer previewwhat's new in WPF version 4.5 developer previewwhat's new for Visual Basic in Visual Studio 11 developer previewwhat's new for Visual C # In visual Studio 11 developer previewwhat's new for Visual C ++ in Visual Studio 11 developer previewwhat's new for visual F # in Visual Studio 11 developer previewother resourceswhat's new in Windows communication foundationwhat's new in Windows Workflow Foundation original address: http://msdn.microsoft.com/zh-cn/library/ms171868 (V = vs.110 ). aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.