Sams Teach Yourself Visual Studio .NET 2003 in 21 Days

Sams Teach Yourself .Net in 21 Days

By Jason Beres

Finding the Information You Need About Namespaces

Knowing that hundreds of namespaces and housands of classes make up the FCL, you need to know what namespaces offer you the functionality you need to complete the job at hand.

You need to know how to navigate the .NET Framework SDK to find the information you need. But first, let's look at the common namespaces in the FCL and the functionality they offer. This will help you know what to look for when we get to the SDK.

As you can see, there are many top-level namespaces, and the list I provided is only a partial one. I also mentioned that these are the common namespaces. Understanding what each namespace can do for you makes them all equally important, so being familiar with the names helps you know where to look in the SDK when you actually need to use something you've never used before.

Searching the .NET Framework SDK

The .NET Framework SDK and the Visual Studio .NET help file are designed to give you quick and easy access to the information you need to use Visual Studio .NET. The help file is broken down by tasks; for example, Working with Data, and Deploying Applications. Each help topic has a hyperlink on the bottom of the help page that leads you to the namespace where the class you are working with exists or to further reading on the topic.

To test this, open the help file for Visual Studio .NET. After it's opened, you should see tabs across the bottom left of the help screen that say Contents, Index, Search, and Favorites. Click the Index tab, and type security in the Search box. Your results should look something like Figure 9.1.

09fig01.jpg

Figure 9.1 Searching the help file for security.

As you can see, a bunch of topics appear for Security. If you click the first topic, .NET Framework namespaces, you'll see links to all the topics that cover security in the .NET Framework. Doing searches like this helps you understand where things are located in the .NET Framework. Next, do a search for data or collection, and click around to become familiar with how the help file is cross-referenced with the SDK and samples.

If you already think you know the namespace you need, you can go directly to the Reference section of the .NET Framework class library in the SDK. Figure 9.2 shows you how to navigate to find the list of every namespace and class in the FCL.

09fig02.jpg

Figure 9.2 Navigating to the FCL Reference section in the .NET SDK.

So, now you can see two ways to easily figure out where namespaces and classes are and how to get help on them. Later today, you'll learn more about using the help file. Throughout the rest of this week and next week, you'll reference the SDK help file to do further reading and get a better understanding of where things are in the FCL.

Share ThisShare This

Informit Network