Compartilhar via


FormRegionCustomAction.TargetForm Property

Gets or sets the message class of the form that appears when the user executes the custom action.

Namespace:  Microsoft.Office.Tools.Outlook
Assembly:  Microsoft.Office.Tools.Outlook (in Microsoft.Office.Tools.Outlook.dll)

Syntax

'Declaration
Property TargetForm As String
string TargetForm { get; set; }

Property Value

Type: System.String
A string that represents the message class of the form that appears when a user executes the custom action.

Exceptions

Exception Condition
ArgumentException

The value is greater than 256 characters in length.

InvalidMessageClassException

The value of the string is empty or contains the name of a message class that is not valid.

Remarks

Specify a message class to identify the type of form that you want to appear when the user executes the custom action. For example, if you want the custom action to open a mail item, set the TargetForm property to IPM.Note.

.NET Framework Security

See Also

Reference

FormRegionCustomAction Interface

Microsoft.Office.Tools.Outlook Namespace