OutlookAddIn 类 (2007 system)

更新: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 会自动创建一个名为 ThisAddIn 的类,该类派生自 OutlookAddIn。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

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

另请参见

参考

OutlookAddIn 成员

Microsoft.Office.Tools.Outlook 命名空间