Share via


InvalidMessageClassException Class

Definition

Represents errors that occur when a specified message class name is not valid.

public ref class InvalidMessageClassException sealed : ArgumentException
[System.Diagnostics.DebuggerNonUserCode]
[System.Serializable]
public sealed class InvalidMessageClassException : ArgumentException
[<System.Diagnostics.DebuggerNonUserCode>]
[<System.Serializable>]
type InvalidMessageClassException = class
    inherit ArgumentException
Public NotInheritable Class InvalidMessageClassException
Inherits ArgumentException
Inheritance
InvalidMessageClassException
Attributes

Remarks

This exception can occur if you specify an invalid message class name for the FormRegionMessageClassAttribute.

This exception can also occur if you set the TargetForm property of the FormRegionCustomAction to an invalid message class name.

For more information about valid message class names, see Associating a Form Region with an Outlook Message Class.

Constructors

InvalidMessageClassException()

Initializes a new instance of the InvalidMessageClassException class.

InvalidMessageClassException(Exception)
InvalidMessageClassException(String, Exception)
InvalidMessageClassException(String, String)
InvalidMessageClassException(String)

Initializes a new instance of the InvalidMessageClassException class by using the invalid message class name.

Properties

MessageClass

Gets the invalid message class name.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Applies to