OutlookAddInBase.FormRegionFactoryResolve Event

定义

在加载外接程序时,以及在注册表中指定的窗体区域名与在外接程序中定义的任何窗体区域名不匹配时发生。Occurs when the add-in loads, and when a form region name that is specified in the registry does not match the name of any form regions defined in the add-in.

public event Microsoft.Office.Tools.Outlook.FormRegionFactoryResolveEventHandler FormRegionFactoryResolve;

注解

在加载外接程序时, 可以使用此事件来提供一个或多个窗体区域。You can use this event to supply one or more form regions when the add-in loads. 必须在注册表中描述窗体区域。You must describe a form region in the registry. 有关窗体区域注册表项的详细信息, 请参阅VSTO 外接程序的注册表项For more information about form region registry entries, see Registry Entries for VSTO Add-ins.

确保你在注册表中指定的名称不能与外接程序中定义的任何窗体区域的名称相匹配。Ensure that the name that you specify in the registry must not match the name of any form regions defined in the add-in.

在事件处理程序方法中, 将FormRegionFactory设置为IFormRegionFactory实现接口的任何类的实例。In the event handler method, set the FormRegionFactory to an instance of any class that implements the IFormRegionFactory interface.

适用于