ImportedFormRegionBase.GetFormRegionControl Method
Returns the specified control from the Microsoft.Vbe.Interop.Forms.UserForm of the form region.
Namespace: Microsoft.Office.Tools.Outlook
Assembly: Microsoft.Office.Tools.Outlook.v4.0.Utilities (in Microsoft.Office.Tools.Outlook.v4.0.Utilities.dll)
Syntax
'Declaration
Protected Function GetFormRegionControl ( _
identifier As String _
) As Object
protected Object GetFormRegionControl(
string identifier
)
Parameters
- identifier
Type: System.String
The 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. |
.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.