Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the specified control from the Microsoft.Vbe.Interop.Forms.UserForm of the form region.
Namespace: Microsoft.Office.Tools.Outlook
Assemblies: Microsoft.Office.Tools.Outlook.v4.0.Utilities (in Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll)
Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)
Syntax
'Declaration
Function GetFormRegionControl ( _
identifier As String _
) As Object
Object GetFormRegionControl(
string identifier
)
Parameters
identifier
Type: System.StringThe name of the control that you would like to locate in the Microsoft.Vbe.Interop.Forms.UserForm of the form region.
Return Value
Type: System.Object
The control that is specified by identifier.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | The form region specified by the OutlookFormRegion property is nulla null reference (Nothing in Visual Basic). |
ControlNotFoundException | Identifier does not match a control in the .ofs file. |
Remarks
If you manually create a form region class that inherits from ImportedFormRegion, call this method to return each control that is identified in the Outlook Form Storage (*.ofs) file from the Microsoft.Vbe.Interop.Forms.UserForm of the native form region.
.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.