Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't see collection classes via web reference
Message
 
À
25/02/2003 16:50:04
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00757826
Message ID:
00757834
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform