D
d.gallone
Hello,
I'm writing a Windows service in VB .NET that is looking for all
messages from a specified folder (Outlook 2002). I've only the name of
that folder. How can I find the folder ID ?
In VB6 I 've done like this but I can't use the same code in the
windows service (because outlook model is unsuitable to run in a
Windows Service):
Dim nsMAPI As Outlook.NameSpace
Dim MyListFolder As MAPIFolder
for i = 1 to nsMAPI.Folders.Count
Set MyListFolder = nsMAPI.Folders(i)
if MyListFolder.Folders.Item(i).Name = "test" then
....
end if
next
Thanks for your help,
David GALLONE
I'm writing a Windows service in VB .NET that is looking for all
messages from a specified folder (Outlook 2002). I've only the name of
that folder. How can I find the folder ID ?
In VB6 I 've done like this but I can't use the same code in the
windows service (because outlook model is unsuitable to run in a
Windows Service):
Dim nsMAPI As Outlook.NameSpace
Dim MyListFolder As MAPIFolder
for i = 1 to nsMAPI.Folders.Count
Set MyListFolder = nsMAPI.Folders(i)
if MyListFolder.Folders.Item(i).Name = "test" then
....
end if
next
Thanks for your help,
David GALLONE