microsoft dot net framework

Post on 26-May-2015

2.035 Views

Category:

Education

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

.NET FrameworkMicrosoft's Platform for Application Development

So what is .NET?

The .Net

Microsoft's platform for software development

Unified technology for development of almost any kind of applications.

What is .Net Framework? .Net Framework

Programming model for .NET

Developing and executing .NET applications

Unified programming model, set of

languages, class libraries, infrastructure,

components and tools for application

development

Environment for controlled execution of

managed code

Components of .Net Framework Common Language Runtime (CLR)

• Garbage collection

• Language integration

• Multiple versioning support

• Integrated security

Framework Class Library (FCL)

• Provides the core functionality:

ASP.NET, Web Services, ADO.NET,

Windows Forms, IO, XML, etc.

User and Program Interface

Common Language Runtime• CLR manages code execution at

runtime• Memory management, thread

management, etc.

.Net Framework

Operating System

Common Language Runtime

Base Class Library• Object-oriented collection of

reusable types• Collections, I/O, Strings, …

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

Data Access Layer• Access relational databases• Disconnected data model• Work with XML

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP.NET & Windows Forms• Create application’s front-end –

Web-based user interface, Windows GUI, Web services, …

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Programming Languages• Use you favorite language

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

C++ C# VB.NET Perl J# …

Common Language Specification

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Common Language SpecificationC++ C# VB Perl J# …

Visual Studio .NET

.Net Framework

Operating System

Common Language Runtime

.NET Framework (Base Class Library)

ADO .NET and XML

ASP .NETWeb Forms Web Services

Mobile Internet Toolkit

WindowsForms

Common Language Specification

C++ C# VB Perl J# …

Vis

ua

l Stu

dio

.NE

T

Common Language Runtime(CLR)

The Heart of .NET Framework

Common Language Runtime(CLR)

Essential components Service provider -

Code compilation• Known as Just In Time (JIT)

compilation Memory allocation Garbage collection

Something like virtual machine Like the Java Virtual Machine (JVM)

allows the execution of code across different platforms.

Responsibilities of CLR Execution of the IL code and the JIT

compilation Code Verification Ensuring type safety Interaction with the OS Managing security

• Code access security Garbage Collection

The .NET LanguagesC#, VB.NET, C++, J#,

etc.

.NET Languages

.NET languages by Microsoft

• C#, VB.NET, Managed C++, J#, F#,

JScript

.NET languages by third parties

• Object Pascal, Perl, Python, COBOL,

Haskell, Oberon, Scheme, Smalltalk…

Different languages can be mixed in a

single application

C# Language – Example

Mixture between C++, Java and Delphi

C# is standardized by ECMA and ISO

Example of C# program:

using System;

class NumbersFrom1to100{ static void Main() { for (int i=1; i<=100; i++) { Console.WriteLine(i); } }}

.NET framework Security The .NET Framework provides several mechanisms for

protecting resources and code from unauthorized

code and users. The security architecture of the .NET Framework is

composed of a number of core elements, including:

• Evidence-based security

• Code access security

• The verification process

• Role-based security

• Cryptography

• Application Domains

Visual Studio IDEPowerful Development Environment

for .NET

Visual Studio

Visual Studio is powerful Integrated

Development Environment (IDE) for .NET

Developers

• Create, edit, compile and run .NET

applications

• Different languages – C#, C++, VB.NET,

J#, …

• Flexible code editor

• Powerful debugger

• Integrated with SQL Server

• Strong support of Web services.

Visual Studio

Helpful wizards and editors

• Windows Forms Designer

• WCF (Windows Communication

Foundation)

• ASP.NET Web Forms Designer

• ADO.NET / LINQ-to-SQL / XML Data

Designer

ADO.NET

ADO.NET is a data access programming

model for accessing the data stored in a

database from a .NET application.

The ADO.NET object model consists of

two main components-

• data provider

• dataset

ADO.NET

The Main features of ADO.NET are:

• Disconnected data architecture

• Data cached in datasets

• Scalability

• Data transfer in XML format

ASP.NET

Platform for building Web applications and

Web services in any .NET language

o C#, C++, VB.NET, JScript, etc.

Automatic multiple clients support

o DHTML, HTML, small devices . . .

Multi Device and Multi Browser

Separation of code and content

o Developers and designers can work independently

Web Froms:

Pages that users request through their

browser.

Combination of HTML, server controls,

and server code.

Powerful data binding, with great tool

support.

Easy to start, develop, and deploy

ASP.NET Web Forms

Windows Presentation Foundation(WPF)WPF is actually a new framework introduced

with .NET framework 3.0 which actually puts

forward a new set of classes and assemblies

which allow us to write programs more

efficiently and flexibly.

WPF controls makes smooth drawing in the

form.

Helps in customizing controls and modifying

their behaviors.

Windows Communication Foundation(WCF)

WCF is a unified communication

framework for distributed applications.

WCF defines a common programming

model and unified API for clients and

services to send messages between

each other.

WCF is the current and future standard

for distributed .Net applications.

Advantages of .NET Framework

• Consistent programming model.

• Multi-platform application.

• Multi-language integration

• Automatic resource management

• Ease of deployment

For More Details visit following web sites:

.NET Framework Home Site –

http://msdn.microsoft.com/netframework/

The Microsoft .NET Framework Community http

://www.gotdotnet.com/

ASP.NET – http://www.asp.net/

.NET Windows Forms – http://www.windowsforms.net

/

Read the news groups:

news://msnews.microsoft.com/

microsoft.public.dotnet.framework

top related