Partager via


_RuleActions.MoveToFolder Property

Returns a MoveOrCopyRuleAction object with _MoveOrCopyRuleAction.ActionType being olRuleActionMoveToFolder. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property MoveToFolder As MoveOrCopyRuleAction
    Get
'Usage
Dim instance As _RuleActions
Dim value As MoveOrCopyRuleAction

value = instance.MoveToFolder
[DispIdAttribute()]
MoveOrCopyRuleAction MoveToFolder { get; }

Property Value

Type: Microsoft.Office.Interop.Outlook.MoveOrCopyRuleAction

Remarks

Use the returned MoveOrCopyRuleAction object when enumerating the rule actions of an existing rule or when creating a new rule that specifies copying a message to a specific folder as an action.

This property of the RuleActions collection always returns a MoveOrCopyRuleAction object regardless of whether the rule associated with this RuleActions collection has defined such a rule action. If the rule has defined and enabled such a rule action, then _MoveOrCopyRuleAction.Enabled will be True.

See Also

Reference

_RuleActions Interface

_RuleActions Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Rule to File Mail Items from a Manager and Flag Them for Follow-Up