Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't see collection classes via web reference
Message
 
To
25/02/2003 16:50:04
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00757826
Message ID:
00757834
Views:
11
Hi Keith,

The DLL file that contains the System.Collections namespace is already referenced in your project. It is there by default. All you have to do is create a reference to each namespace at the top of your code-behind like the following:
using System.Collections;
Once this is done, you can reference the classes in the namespace. The Web Reference in the solution manager is for adding Web services to your project.

>I have some classes defined in a class file in a Web Service project. When I look at the web reference for the service in my Web Forms project, I don't see any reference to the collection classes (Inherits System.Collections.CollectionBase).
>
>Is this by design, and is there a way to force .NET to include the collection classes in the web reference without editing the reference.vb file?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform