Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: Message.Attachments.Remove Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 11 January 2005 at 11:40am | IP Logged Quote Guests

I'm using C# (.NET) and I am having trouble with the Message component. I have a message with 2 attachments, and I want to remove one of them, however, when I call

NewMessage.Attachments.Remove(0);

It doesn't seem to work at all. How do I remove a single attachment without having to recreate the entire message?
Back to Top View Guests's Profile Search for other posts by Guests
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 08 March 2005 at 4:48am | IP Logged Quote Guests

If you read the Object Documentation you will see that the Index of the Attachment Collection wil start at 1 !
Back to Top View Guests's Profile Search for other posts by Guests
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide