Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:41:54+00:00 2026-05-22T22:41:54+00:00

MSDN says this of the MAPIFolder interface (Outlook programming with WPF): This interface is

  • 0

MSDN says this of the MAPIFolder interface (Outlook programming with WPF):

This interface is deprecated; do not
use this interface. Instead use the
interface Folder to access all method,
property, and event members of the COM
object Folder.

I am trying to get the Drafts folder like so:

Outlook.MAPIFolder oFolder = olNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderDrafts);

How do I do the above without using the MAPIFolder (which is deprecated)?
I guess I don’t understand what MSDN is saying (using the Folder interface to access all method etc)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:41:55+00:00Added an answer on May 22, 2026 at 10:41 pm

    You simply cast it to Outlook.Folder, i.e.

    Outlook.Folder oFolder = (Outlook.Folder) olNS.GetDefaultFolder( Outlook.OlDefaultFolders.olFoderDrafts)
    

    Admittedly, the MSDN is rather unclear there. You can think of the Folder interface as a wrapper around the MAPIFolder, with additional support for events.

    As I sidenote, I would take the whole ‘deprecated’ thing with a grain of salt. I’d bet MAPIFolder is here to stay, at least for a couple more versions of Outlook.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The MSDN documentation says that public class SomeObject { public void SomeOperation() { lock(this)
MSDN says that you should use structs when you need lightweight objects. Are there
In Executing Control Panel Items , MSDN says this: Windows Vista Canonical Names In
I want to use the information obtained by calling System.Web.ProcessModelInfo.GetCurrentProcessInfo() . But MSDN says
MSDN says this about the StackTrace property of the Exception class: The StackTrace property
I just stumbled on this article on MSDN that says a path can be
This link on MSDN says it's stored in the samples directory of the Windows
Threads all share resources. That's the whole problem around multi-threaded operations. MSDN says: You
this Q might be wrong because I just started wpf. on msdn I found
On MSDN - C# Programming guide Constraints on Type Parameters , it says: where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.