FormRegionMessageClassAttribute Constructor
Initializes a new instance of the FormRegionMessageClassAttribute class.
Namespace: Microsoft.Office.Tools.Outlook
Assembly: Microsoft.Office.Tools.v4.0.Framework (in Microsoft.Office.Tools.v4.0.Framework.dll)
Syntax
'Declaration
Public Sub New ( _
messageClass As String _
)
public FormRegionMessageClassAttribute(
string messageClass
)
Parameters
messageClass
Type: System.StringThe name of a message class.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The messageClass argument is nulla null reference (Nothing in Visual Basic) or is empty. |
ArgumentException | The messageClass argument is greater than 255 characters in length. |
InvalidMessageClassException | The messageClass argument is invalid. For more information about valid message class names, see Associating a Form Region with an Outlook Message Class. |
.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.