O
Oz Kologlu
Hi all,
I'm trying to get a list of appointments for the following month using
restrict eg:
Items items = aptFolder.Items.Restrict(
"[My.Id] <> '' " +
"AND [Start] >= '" + DateTime.Now.ToShortDateString() + "' " +
"AND [Start] <= '" + DateTime.Now.AddMonths(1).ToShortDateString() + "'" +
"AND [MessageClass] = 'IPM.Appointment'");
items.Count returns 3 when there are only _2_ appointments!
It seems count is including some com object as the first item in the list.
Does anyone have any idea what it is or why I get an extra object and count
actually can't?
Thanks,
Oz
I'm trying to get a list of appointments for the following month using
restrict eg:
Items items = aptFolder.Items.Restrict(
"[My.Id] <> '' " +
"AND [Start] >= '" + DateTime.Now.ToShortDateString() + "' " +
"AND [Start] <= '" + DateTime.Now.AddMonths(1).ToShortDateString() + "'" +
"AND [MessageClass] = 'IPM.Appointment'");
items.Count returns 3 when there are only _2_ appointments!
It seems count is including some com object as the first item in the list.
Does anyone have any idea what it is or why I get an extra object and count
actually can't?
Thanks,
Oz