Share via


OutlookAddIn 類別 (2007 系統)

更新:2007 年 11 月

表示 Microsoft Office Outlook 增益集。

命名空間:  Microsoft.Office.Tools.Outlook
組件:  Microsoft.Office.Tools.Outlook.v9.0 (在 Microsoft.Office.Tools.Outlook.v9.0.dll 中)

語法

<AddInBaseAttribute(ActivatableAs := )> _
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Class OutlookAddIn _
    Inherits AddIn

Dim instance As OutlookAddIn
[AddInBaseAttribute(ActivatableAs = )]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public class OutlookAddIn : AddIn

備註

當您建立 Outlook 增益集專案時,Visual Studio Tools for Office 會自動建立衍生自 OutlookAddIn 的類別,並命名為 ThisAddIn。ThisAddIn 類別會提供讓您寫入程式碼的起始位置。您可以使用 ThisAddIn 類別的 Application 欄位存取主應用程式的物件模型。如需 ThisAddIn 類別的詳細資訊,請參閱應用程式層級增益集程式設計

繼承階層架構

System.Object
  Microsoft.VisualStudio.Tools.Office.RemoteComponent
    Microsoft.VisualStudio.Tools.Office.EntryPointComponentBase
      Microsoft.VisualStudio.Tools.Office.EntryPointBindableComponentBase
        Microsoft.Office.Tools.AddIn
          Microsoft.Office.Tools.Outlook.OutlookAddIn

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。並非所有的執行個體成員都是安全執行緒。

請參閱

參考

OutlookAddIn 成員

Microsoft.Office.Tools.Outlook 命名空間