VB .NET Unit-1
VB .NET Unit-1
NET
FRONT END DESIGN TOOL
USING
VB .NET
UNIT - 1
PRESENTATION BY:
ANKIT VERMA
(IT DEPARTMENT)
Book Bank
Visual Basic 2010, Step By Step, Michael Halvorson
Complete Syllabus
C. Komalavalli, Sanjib K Sahu (Ane Books)
Polymorphism
Encapsulation
Inheritance
CSS Oracle
.NET MS Access
C# .NET
ASP .NET
J# .NET
VB .NET
“.NET is a framework”
Connecting to database
Cross-platform Support
Support CLR to run .NET application
Language Interoperability
Piece of code written in one language can be used in other
language.
Facilitate reuse of code.
Improves efficiency.
Ease Of Deployment
Installation of new components not affect existing
applications.
Console Application
Command line application
Windows Forms
GUI interface to user
Web Forms
Web pages
Web Services
Software components that perform task in distributed manner
Reporting Application
Windows user interface & report
Business Layer
Client Layer
Memory Management
Type Safety
Exception Handling
Components Of CLR
Code Manager
Manage the code during execution
Exception Manager
Handle exception in both managed & unmanaged code
Security Checker
Restricts access to system resources like
Hard Disk
MSIL Code
Thread Support
Support multithreading
Debug Engine
Find & remove the bugs from programs
Type Checker
Datatype checking of variable
Garbage Collector
Automatic garbage collection of object when object is no longer
in use
Periodically check heap memory where objects get memory
Better Performance
Type Safety
Reference Type
Store Memory Address Of Variable Using Pointer
Passed In Methods By Reference Method
Stored In Heap
String Handling
I/O Functionality
File Handling
Windows Form:
Consists of classes related to design, components, passing messages to user etc.
XML:
Consists of classes related to XSLT, XPath, XQuery, Serialization.
Source Code IL
Language
(VB .NET, Compilers (EXE /
C#.NET) DLL)
Class
Libraries
CLR
(Execution)
Output
(Run Time
Manager)
28-11-2014 ANKIT VERMA 39
Memory Management
Resource Allocation
Automatic memory management is one of the services that
CLR provides during execution.
The Garbage Collector manages the allocation release of memory
for an application.
The Microsoft .NET CLR requires that all resources be
allocated from the managed heap.
Objects are automatically freed when they are no longer needed
by the application.
After all the collection has been identified, all the non
garbage has been compacted and all the non garbage pointers
have been fixed up, the next object is positioned just after the
last non garbage object.
At this point, the new operator is tried again and the resource
requested by an application is successfully created.
Assembly Manifest
Assembly consists of assembly
metadata called Assembly Manifest.
Assembly has one entry point
CRL does not actually work
with managed modules, it
works with assemblies.
Assembly is logical grouping of
one or more managed module.
Assembly is the smallest unit
of reuse, security & versioning.
28-11-2014 ANKIT VERMA 50
Assemblies
Static Assemblies
Dynamic Assemblies
Private Assemblies
Public Assemblies or Shared Assemblies
Exception Example:
Arithmetic Exception
OverFlow Exception
NullReference Exception
Finally
Finally Block is optional.
Syntax:
Try
<statement>
Catch Ex as Exception
<statement>
End Try
Program Output
Program Output
Security Policies
When Assembly is loaded, CLR check security policy by running
Evidences.
Security Policy can be defined in four levels:
Enterprise
User
Machine
Application
Permission
Permissions are rights for accessing the particular operations
permitted by Security Policy.
Present in class System.Security.Permissions namespace.
Permission Sets
Named collections of Permissions are known as Permission Sets.
DOUBTS
PRESENTATION BY:
ANKIT VERMA
(IT DEPARTMENT)