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, 戴夫
你應該接受你的答案這樣的問題將出現在搜索解決 – grapkulec 2011-07-20 09:54:36