Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

請試想下列案例:

  • 您可以存取 Outlook 物件模型(OOM)。 若要這樣做,您可以使用自訂的 Microsoft Outlook 2010 增益集、自訂的腳本或其他程式設計語言,以朗讀正在回復的電子郵件訊息收件者物件的 DisplayType 屬性。

  • 增益集使用下列物件屬性來存取收件者的 DisplayType:

    Outlook.Recipient.DisplayType

在這種情況下,您會收到下列錯誤:

執行時間錯誤 '-1040973553 (c1f4010f)嘗試的操作失敗。 找不到物件。

原因

發生此問題的原因是,在回復電子郵件訊息時,屬性 PR_RECIPIENT_TYPE 不會設定。 舊版 Outlook 版本會忽略屬性讀取時未設定屬性的事實。 Outlook 2010 不會忽略這個屬性。 因此,您會收到「症狀」一節中所提及的錯誤訊息。

解決方案

若要解決此問題,您必須存取AddressEntry物件的下列DisplayType屬性:

Outlook.Recipient.AddressEntries(index).DisplayType

在這個範例中,索引預留位置會參照AddressEntries集合中的特定AddressEntry或收件者物件。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×