Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Is it possible to delete extended properties without knowing the id?

$
0
0

Hello,

Can you delete any custom extended properties without knowing their ID?

I took over managing a feature that used EWS to send emails to customers.The current code creates a new GUID, and thus new Extended Property, every time an email is sent.

// Create a custom extended property and add it to the message. 
var myExtendedPropertyDefinition = new ExtendedPropertyDefinition(Guid.NewGuid(), "MyGuidId", MapiPropertyType.String);

mail.SetExtendedProperty(myExtendedPropertyDefinition, "MyGuidId"); 

// Send and save a copy
mail.SendAndSaveCopy();
Is there a way to delete any of the custom extended propeties without knowing the IDs?

Thank you


Viewing all articles
Browse latest Browse all 7132

Trending Articles