Adding ChannelItem to ChannelItemCollection
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Adding ChannelItem to ChannelItemCollection




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Adding ChannelItem to ChannelItemCollection  
Gonçalo Boléo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 12:51 PM

Is possible to add a ChannelItem to a ChannelItemCollection?

I wan't to pick up some items from one channel  and some others from another
channel (not a complete union) and then use SortByStartDate on them.

thanks,
Gonçalo Boléo








[ Post a follow-up to this message ]



    Re: Adding ChannelItem to ChannelItemCollection  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 12:51 PM

Hi Goncalo,

the only thing you could do is to combine two collections using the Union
method.
But you could copy the collection into an array (using CopyTo method) and
then add the other Channel Item to the array.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------


"Gonçalo Boléo" <gboleo@netcabo.pt> wrote in message
news:e7Zf8BmGFHA.3072@tk2msftngp13.phx.gbl...
> Is possible to add a ChannelItem to a ChannelItemCollection?
>
> I wan't to pick up some items from one channel  and some others from
another
> channel (not a complete union) and then use SortByStartDate on them.
>
> thanks,
> Gonçalo Boléo
>
>
>







[ Post a follow-up to this message ]



    Re: Adding ChannelItem to ChannelItemCollection  
Paul Devenney


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 12:51 PM

I always use listcollections for this kind of work. Whenever I write
controls to handle channel Items I generally utilize the collection
iterface, rather than a specific type, then your code does not care if you
pass it a ChannelItemCollection or a List....


"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:ez8IfwmGFHA.3912@TK2MSFTNGP10.phx.gbl...
> Hi Goncalo,
>
> the only thing you could do is to combine two collections using the Union
> method.
> But you could copy the collection into an array (using CopyTo method) and
> then add the other Channel Item to the array.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
> ----------------------
>
>
> "Gonçalo Boléo" <gboleo@netcabo.pt> wrote in message
> news:e7Zf8BmGFHA.3072@tk2msftngp13.phx.gbl... 
> another 
>
>







[ Post a follow-up to this message ]



    Re: Adding ChannelItem to ChannelItemCollection  
Gonçalo Boléo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 12:51 PM

thanks

"Paul Devenney" <spam@spamgohere.com> wrote in message
news:ezph1zmGFHA.3928@TK2MSFTNGP09.phx.gbl...
> I always use listcollections for this kind of work. Whenever I write
> controls to handle channel Items I generally utilize the collection
> iterface, rather than a specific type, then your code does not care if you
> pass it a ChannelItemCollection or a List....
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:ez8IfwmGFHA.3912@TK2MSFTNGP10.phx.gbl... 
Union[vbcol=seagreen] 
and[vbcol=seagreen] 
rights[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Re: Adding ChannelItem to ChannelItemCollection  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-25-05 01:46 AM

Hi Paul,

that sounds interesteing!
Do you have a code sample? I never used this and don't have a clue where to
start!

Thanks,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights
Book: Building Websites Using MCMS: http://tinyurl.com/3lh8s
----------------------


"Paul Devenney" <spam@spamgohere.com> wrote in message
news:ezph1zmGFHA.3928@TK2MSFTNGP09.phx.gbl...
> I always use listcollections for this kind of work. Whenever I write
> controls to handle channel Items I generally utilize the collection
> iterface, rather than a specific type, then your code does not care if you
> pass it a ChannelItemCollection or a List....
>
>
> "Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
> news:ez8IfwmGFHA.3912@TK2MSFTNGP10.phx.gbl... 
Union[vbcol=seagreen] 
and[vbcol=seagreen] 
rights[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register