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.
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
Get
Set
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
- 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.