Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Mon, 13 Feb 2006 21:02:38 -0800,    group: microsoft.public.exchange2000.development        back       


C# ADODB WebDAV - how to grab urn:schemas:calendar:exdate collection   
Hello,

I am trying to grab the exceptions date collection from a calendar object 
using a C# ADODB recordset.

Where can i find the data type mappings for the various urn:schemas:calendar 
fields?

What data type would i used for this.  I am using .Net 2.0 - so i have 
generics available to me, but still exploring their implementation.

my requirement is to be able to iterate over the list of items in the 
collection - in visual basic, i would do something like this:

dim varExceptions

varExceptions = rs.Fields("urn:schemas:calendar:exdate")

For Each varExc in varExceptions
    do something with varExc which is a Date variable
Next

But, how to do this in c#?

Thank you.
date: Mon, 13 Feb 2006 21:02:38 -0800   author:   Cord Thomas

Re: C# ADODB WebDAV - how to grab urn:schemas:calendar:exdate collection   
That data type is VT_VARIANT which is basically an array of variants. see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_cdo_schema_calendar_exdate.asp

In C# you usually just treat it as an object array eg

object[] exdates = 
(object[])rec.Fields["urn:schemas:calendar:exdate"].Value;
foreach (object exdate in exdates){Console.WriteLine(exdate.ToString());}

Cheers
Glen



"Cord Thomas"  wrote in message 
news:eG5lUPSMGHA.2472@TK2MSFTNGP11.phx.gbl...
> Hello,
>
> I am trying to grab the exceptions date collection from a calendar object 
> using a C# ADODB recordset.
>
> Where can i find the data type mappings for the various 
> urn:schemas:calendar fields?
>
> What data type would i used for this.  I am using .Net 2.0 - so i have 
> generics available to me, but still exploring their implementation.
>
> my requirement is to be able to iterate over the list of items in the 
> collection - in visual basic, i would do something like this:
>
> dim varExceptions
>
> varExceptions = rs.Fields("urn:schemas:calendar:exdate")
>
> For Each varExc in varExceptions
>    do something with varExc which is a Date variable
> Next
>
> But, how to do this in c#?
>
> Thank you.
>
date: Wed, 15 Feb 2006 10:27:45 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us