共用方式為


FormNameRuleCondition.FormName Property (Outlook)

Returns or sets an Object that represents an array of form identifiers to be evaluated by the rule condition. Read/write.

Version Information

Version Added: Outlook 2007

Syntax

expression .FormName

expression A variable that represents a FormNameRuleCondition object.

Remarks

Even though the Rules and Alerts Wizard uses the display name of a form as an identifier, programmatically, FormName uses the message class of the form as an identifier.

You can assign an array with one string or an array of multiple strings to the FormName property. Multiple form identifiers assigned in an array are evaluated using the logical OR operation.

FormName returns an error if it contains one or more empty strings.

See Also

Concepts

FormNameRuleCondition Object

FormNameRuleCondition Object Members