How to add namespace in VB.Net

 

What is a Namespace?

Namespaces are a way to define the classes and other types of information into one hierarchical structure. System is the basic namespace used by every .NET code. If we can explore the System namespace little bit, we can see it has lot of namespace user the system namespace. For example, System.Io, System.Net, System.Collections, System.Threading, etc.

A namespace can be created via the Namespace keyword.

History

In the Previous articles i explained how to update record into access database using c#.nethow to delete record from access database using c#.netwhich namespace is used for membership classhow to insert record into access database using vb.nethow to update record into access database using vb.net, how to delete record from access database using vb.net and many more about VB.Net.

How to add namespace in VB .NET?

Suppose you have to import Namespace System.Web.Mail. Use the Imports Keyword for accessing namespace. You have to write "Imports System.Web.Mail" on top of .aspx.vb page.

Imports System.Web.Mail

Screenshot

Give your Valuable Comments.
comments powered by Disqus
 
Follow me on twitter
About Me
Harpreet Singh
I began programming with C++ when i was 17. Then at the middle of my study .NET came. Then I began to read C# and VB.NET. By the time i learnt SQL and ASP.NET, and developed some websites such as news portals that are active now. Currently i am running my own Software company.
More Articles