Share via


FormRegionCustomAction.TargetForm Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Outlook.v9.0.dll)

Syntax

'Declaration
Public Property TargetForm As String
'Usage
Dim instance As FormRegionCustomAction 
Dim value As String 

value = instance.TargetForm

instance.TargetForm = value
public string TargetForm { get; set; }
public:
property String^ TargetForm {
    String^ get ();
    void set (String^ value);
}
public function get TargetForm () : String 
public function set TargetForm (value : String)

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 Class

FormRegionCustomAction Members

Microsoft.Office.Tools.Outlook Namespace