S
spareway
When I try to compile this:
foreach (Outlook.MAPIFolder tmpFolder in theFolder.Folders)
{
MesageBox.Show(tmpFolder.Name);
}
I get this:
foreach statement cannot operate on variables of type
'Outlook.Folders' because 'Outlook.Folders' does not contain a
definition for 'GetEnumerator', or it is inaccessible
Anyone know what is the problem?
thanks,
craig
foreach (Outlook.MAPIFolder tmpFolder in theFolder.Folders)
{
MesageBox.Show(tmpFolder.Name);
}
I get this:
foreach statement cannot operate on variables of type
'Outlook.Folders' because 'Outlook.Folders' does not contain a
definition for 'GetEnumerator', or it is inaccessible
Anyone know what is the problem?
thanks,
craig