Re: Confused by the NameValueCollection

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: anon (anon_at_hotmail.com)
Date: 05/13/04


Date: Thu, 13 May 2004 11:26:58 -0700

What if the values have a "comma" in them? How is the comma-separated list
going to know where the next "REAL" value is?

"Teemu Keiski" <joteke@aspalliance.com> wrote in message
news:eQDbGJOOEHA.2952@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> see the documentaion for NameValueCollection's Add method. It says:
>
> "If the specified key already exists in the target NameValueCollection
> instance, the specified value is added to the existing comma-separated
list
> of values associated with the same key in the target NameValueCollection
> instance."
>
> --
> Teemu Keiski
> MCP, Microsoft MVP (ASP.NET), AspInsiders member
> ASP.NET Forum Moderator, AspAlliance Columnist
> http://blogs.aspadvice.com/joteke
>
>
> "anon" <anon@hotmail.com> wrote in message
> news:uksCPmMOEHA.892@TK2MSFTNGP09.phx.gbl...
> > I need a little clarity in the NameValueCollection.
> >
> > Within the MSDN .NET 1.1 Framework help is says:
> >
> > "This collection is based on the NameObjectCollectionBase class.
> > However, unlike the
> > NameObjectCollectionBase, this class stores multiple string values
> under
> > a single key."
> >
> >
> >
> > What does this REALLY MEAN?
> >
> > IS THIS CORRECT WAY?
> > EXAMPLE #1
> > Index Key Value
> > 0 a "alpha"
> > 1 b "beta"
> > 2 c "charlie"
> > 3 c "clifford"
> >
> >
> > OR does it mean
> > EXAMPLE #2
> > Index Key Value
> > 0 a "alpha"
> > 1 b "beta"
> > 2 c "charlie", "clifford"
> >
> >
> > see how I am confused?
> >
> >
> >
> >
>
>



Relevant Pages

  • Re: Confused by the NameValueCollection
    ... What if the values have a "comma" in them? ... > "If the specified key already exists in the target NameValueCollection ... > of values associated with the same key in the target NameValueCollection ... >> Index Key Value ...
    (microsoft.public.dotnet.framework)
  • Re: Confused by the NameValueCollection
    ... What if the values have a "comma" in them? ... > "If the specified key already exists in the target NameValueCollection ... > of values associated with the same key in the target NameValueCollection ... >> Index Key Value ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Confused by the NameValueCollection
    ... What if the values have a "comma" in them? ... > "If the specified key already exists in the target NameValueCollection ... > of values associated with the same key in the target NameValueCollection ... >> Index Key Value ...
    (microsoft.public.dotnet.general)
  • Re: Confused by the NameValueCollection
    ... What if the values have a "comma" in them? ... > "If the specified key already exists in the target NameValueCollection ... > of values associated with the same key in the target NameValueCollection ... >> Index Key Value ...
    (microsoft.public.dotnet.languages.vb)