how to delete mailitems from outlook using redemption i vb.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • irfasyed7
    New Member
    • May 2010
    • 1

    how to delete mailitems from outlook using redemption i vb.net

    Hi every one ,

    I am working on outlook i need to delete mail items from inbox of a pst which is added to outlook profile

    here is ma code

    Code:
    Dim Session As Redemption.RDOSession
                        Session = CreateObject("Redemption.RDOSession")
                        NamSpace.Logon()
                        Dim Folder As Redemption.MAPIFolder
                        Dim Msg As Redemption.RDOMail
                        Folder = Session.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)
                        For i = 1 To Folder.Items.Count
    
                            Msg = Folder.Items.Item(i)
                            Msg.Delete()
    
                            MessageBox.Show("Msg Deleted")
    
                        Next
    i am getting a error as Public member 'Session' on type 'RDOSession' not found.

    plz helop me to get ride on it

    its very urgent plz help me to deal with deletion of mail items using redemption
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    You made a variable called Session of type Redemption.RDOS ession, then you are getting a property within that called Session, as well. Session.session

    Sound like a confusion waiting to happen. Do you have a property of Redemption.RDOS ession.Session? Because the error message says you don't.

    Comment

    Working...