网站首页站长博客下载中心域名交易站长论坛域名主机免费电邮免费域名中文排行排名查询站长书库书籍教程下载
设为首页
加入收藏
总编信箱
投稿或申请专栏请先 [登 陆]
学院首页 网络编程 网页设计 图形图象 数 据 库 服 务 器 网络媒体 网络安全 个人专栏 站长CLUB 业界新闻 信息公告
 当前位置:首页 >> 网络编程 >> NET专区 >> 正文
公告通知
返回上级列表
资料搜索
相关文章
用户自定义控件的应用
c#.net常用函数和方法集
在VB中使用水晶报表的一种简易编
C#调用父类的父类的方法
浏览.NET Framework 2.0 类型库中
为.Text Blog 添加 计数器
编程实现邮件地址有效性检测 
VB/VB.NET/C#导出到Excel的方法
c#高性能在WEB端产生验证图片
用System.Web.Caching.Cache保存
.NET Framework Namespaces
[ 来源:CSDN | 作者:未知 | 时间:2006-4-2 9:45:52 | 浏览:人次 ]
收藏到新浪ViVi 收藏到365KEY 收藏到我摘  字号选择〖    〗/ 双击滚屏 单击停止  
.NET Framework Namespaces
What is a namespace? If Microsoft had simply provided a list of several
thousand classes, attempting to find or work with any specific class would
be next to impossible. Although we're speculating, Microsoft might have
ended up using class names such as SystemDataOleDbDataSet and
SystemTheadingThread. Long names would be required in order to provide some
sort of groupings and perspective.

Instead, Microsoft chose to group the various classes into a hierarchical
set of namespaces. Using a syntax that separates levels in the hierarchy
with dots, you'll find yourself referring to classes like this:

System.Data.OleDb.OleDbDataReader

In this example, the .NET Framework provides a System namespace, a
System.Data namespace, and a System.Data.OleDb namespace. Each provides a
set of classes, and the OleDbDataReader class is a part of the
System.Data.OleDb namespace.

Imagine this scenario: You'd like to send a letter to a friend named Tom
who lives across the country, and you address an envelope to Tom (just
"Tom"), slap on a stamp, and drop it into a mailbox. What's the chance that
the letter will get to your friend? Next to none. If the U.S. Postal
Service had assigned each of us a local "namespace" consisting of
postalcode.state.city.streetaddress, then you might address your letter to
90012.ca.los angeles.123 Smith Street and have it reach your friend.
Microsoft faced the same sort of issue when developing the .NET Framework.
Therefore, each class belongs to a single namespace, and you'll use the
.NET Framework documentation to investigate the various classes and
namespaces.

You are probably asking yourself, which namespaces will I use most often?
This chapter discusses those namespaces you might utilize for typical Web-
or Windows-based business applications. This chapter will not (nor could
it) provide a full reference of every available namespace梩hat would take
several books itself.

The task of limiting the classes to be discussed in this chapter was
daunting梩here are well over 1,000 classes provided by the .NET Framework.
We decided to focus on classes that you're likely to use in applications
that take advantage of Windows Forms, Web Forms, Web Services, databases,
and XML. By using these rather broad areas as the basis for choosing the
namespaces, the list of classes we've included is large but not
overwhelming. Once you understand some of these objects, working with other
objects is easier.

Here's a list of the namespaces covered in this chapter:

System

System.Data

System.Data.OleDb

System.Data.SqlClient

System.IO

System.Text

System.Collections

System.Web.Services

System.Windows.Forms

System.Xml

Although this seems like quite a lot of classes to cover, we'll only
provide a brief introduction to them in this chapter. You will find more
coverage of many of these namespaces in later chapters in the book.

TIP

In order to follow along with the discussion in this chapter, you can load
the Jumpstart\FrameworkClasses\FrameworkClasses.sln solution into Visual
Studio .NET.

[发送给好友]  [打印本页]  [关闭窗口]  [返回顶部]   转载请注明来源:http://edu.chinaz.com   
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
栏目编辑: 设计风 责任编辑: keke
原始作者: 未知 录入时间: 2006-4-2 9:45:52
信息来源: CSDN 投稿信箱: Edu#chinaz.com
设为首页 - 加入收藏 - 关于我们 - 广告服务 - 版权申明 - 友情链接 - 联系方式 - 总编信箱 - 会员投稿