IFormRegionFactory.CreateFormRegion Method
Returns an instance of a class that implements the IFormRegion interface.
Namespace: Microsoft.Office.Tools.Outlook
Assembly: Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)
Syntax
'Declaration
Function CreateFormRegion ( _
formRegion As FormRegion _
) As IFormRegion
IFormRegion CreateFormRegion(
FormRegion formRegion
)
Parameters
formRegion
Type: Microsoft.Office.Interop.Outlook.FormRegionA FormRegion that represents the native form region.
Return Value
Type: Microsoft.Office.Tools.Outlook.IFormRegion
An instance of a class that implements the IFormRegion interface.
Remarks
If you manually create a form region factory class, you must also create a form region class that implements the IFormRegion interface.
Create an instance of the form region class in the CreateFormRegion method and return the object to Outlook.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.