Re: create folder in public folders using Exchange SDK and C#



Hello Henning

One more favour..... Can you guide me how to add listener to
intimate me on adding or deleting any mail from a exchange store folder
?

Regards
Parveen Beniwal


Henning Krause wrote:
Hello Parv,

a collision error could indicate that there already exists a folder with the
new name of the folder.

Best regards,
Henning Krause

"Parv" <Parveen.Beniwal.Daffodil@xxxxxxxxx> wrote in message
news:1151920216.044015.227800@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
i am trying to rename folder Test by the following
Folder oFD = (Folder)oFolders.get_Item("Test");
oFD.Name = "newName";

but i am getting following exception while doing so

System.Runtime.InteropServices.COMException (0x80040604):
[Collaboration Data Objects - [MAPI_E_COLLISION(80040604)]]
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at Interop.cdo.Folder.set_Name(Object )
at MyEventSink.GetPublicFolders.Main(String[] args)

What is wrong here ?

Regards
Parveev Beniwal

Parv wrote:
Hi Henning

Is there any way to rename a folder in your assembly.

Regards
Parveev Beniwal


.



Relevant Pages

  • Re: Rolling back folders delete using VBA
    ... created at run time) with same sub folder structure. ... if we come accross an error while deleting a file from original location. ... Dim oSubFolder As Object ... Dim oFile As Object ...
    (microsoft.public.excel.programming)
  • Re: How to delete the folder and its files using VC++
    ... >here i attached my code deleting file but i cant delete the folder.. ... it does not check that ehe DeleteFile actually worked, and doesn't handle the case where ... I don't see where this allows you to declare an int variable to hold the result, ...
    (microsoft.public.vc.mfc)
  • Re: "delete file" takes forever to finish
    ... Folder contents ... test for that is Nirsoft's free Shell Integration Viewer. ... deleting a file may require the corresponding thumbnail or index entry ...
    (microsoft.public.windowsxp.general)
  • Re: Property tags - what happens if... (Rename of user defined fie
    ... If a user property is added only to individual items then deleting it from each item where it exists will completely remove it. ... If it was also added to the folder then even deleting every item in the folder won't remove it from ... That would have to be done using a different API such as Extended MAPI or CDO 1.21 or Redemption to get at the folder fields. ... you and store how successful you were back so that it examines you more often ...
    (microsoft.public.outlook.program_vba)
  • Re: library database folders dont exist
    ... folder as opposed to deleting the file. ... directory and that the media player would recreate the files and work, ... problem i have is that the directory doesnt even exist. ...
    (microsoft.public.windowsmedia.player)