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

  • SEARCH
  • Home
  • 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 6918635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:53:05+00:00 2026-05-27T09:53:05+00:00

Using EWS managed api v1.1, I can successfully save/set the contact Title or honorific

  • 0

Using EWS managed api v1.1, I can successfully save/set the contact “Title” or honorific (if you prefer) to a non-empty value, but I can’t figure out how to remove or set it back to an empty string/null.

I’ve tried to set an empty value and I’ve tried to remove the extended property. Here is relevant code.

var titleDef = new ExtendedPropertyDefinition(0x3A45, MapiPropertyType.String);

// works when set to a non-empty string value
ewsContact.SetExtendedProperty(titleDef, "Mr.");

// throws null argument exception when set to String.Empty or null
ewsContact.SetExtendedProperty(propDefinition, String.Empty);

// isRemoved is equal to false and the value doesn't change
var isRemoved = ewsContact.RemoveExtendedProperty(titleDef);

I’ve also tried to use a different overload on the ExtendedPropertyDefinition as mentioned in this very similar question, but it didn’t change my end result for removing the property. I’m not sure I understand the difference in the two signatures for the constructor.

var titleDef = new ExtendedPropertyDefinition(new Guid("{00062004-0000-0000-C000-000000000046}"), 0x3A45, MapiPropertyType.String);

// isRemoved is equal to false and the value doesn't change
var isRemoved = ewsContact.RemoveExtendedProperty(titleDef);

Brute Force Work-Around

I suppose I could take a complete copy of the contact (without the title) and delete the original, but that seems a bit over the top and would probably cause other bugs.

  • 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-27T09:53:06+00:00Added an answer on May 27, 2026 at 9:53 am

    EWS lets you assign Extended Properties without first binding them. However, to remove an Extended Property – you need to include it in your initial binding call PropertySet. The following worked for me…

     var titleDef = new ExtendedPropertyDefinition(0x3A45, MapiPropertyType.String);
     Contact contact = Contact.Bind(service, id, new PropertySet(titleDef));
     contact.RemoveExtendedProperty(titleDef);
     contact.Update(ConflictResolutionMode.AutoResolve);
    

    It is also strange that you can retrieve the Title as a first-class property, but you cannot assign it (since it’s a complex type). They could have made this easier for us.

    var title = contact.CompleteName.Title;  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to search Exchange using the EWS Managed API for all
We are using EWS Managed API which polls MS Exchange for new mail messages
I have a process that uses EWS Managed API to save email messages as
I'm trying to build iOS app using Microsoft EWS managed API. I've downloaded the
I've written a C# program using managed Exchange Web Services (EWS) to query a
Is there any way to retrieve the priority of a task using EWS Managed
I have a program that subscribes to multiple Exchange 2010 mailboxes using EWS Managed
We have begun to use the EWS Managed API to send email via MS
In our organization we are trying to use EWS Managed API to access mailboxes
Working in C# with the EWS Managed API, we're having trouble efficiently retrieving the

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.