1

我正在使用EWS綁定到Exchange上的郵箱中的特定郵件。一切都很順利,直到我爲我的請求添加了擴展屬性。我如何設置這個'FieldURI'屬性? (其中涉及的任何對象似乎都沒有!)EWS錯誤:「請求失敗模式驗證:缺少必需的屬性'FieldURI'。」

   Dim expCP = New ExtendedPropertyDefinition(DefaultExtendedPropertySet.Common, "My Custom Prop Name", MapiPropertyType.String) 
       prpPropsToLoadUpdateMessages.Add(ItemSchema.ExtendedProperties) 
       prpPropsToLoadUpdateMessages.Add(expCP) 
       Dim itmMessage As Item = Item.Bind(ews, New ItemId(strUniqueId), prpPropsToLoadUpdateMessages) 

此代碼段的第4行將引發錯誤。我沒有包含我用來定義prpPropsToLoadUpdateMessages的代碼,因爲它大約有100行添加差不多ItemSchema中的每個屬性。

TIA, 戴夫

回答

相關問題