Share via


_MoveOrCopyRuleAction.Folder Property

Returns or sets a Folder object that represents the folder to which the rule moves or copies the message. Read-write.

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

Syntax

'Declaration
Property Folder As MAPIFolder
    Get
    Set
'Usage
Dim instance As _MoveOrCopyRuleAction
Dim value As MAPIFolder

value = instance.Folder

instance.Folder = value
MAPIFolder Folder { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.MAPIFolder

Remarks

If no folder has been assigned to the move or copy rule action, this property is Nothing (a null reference (Nothing in Visual Basic) in C#).

This property returns an error if the specified folder cannot serve as a target folder for the copy or move operation. For example, the folder is a search folder, is read-only, or the user does not have the required permissions to move or copy messages to it.

See Also

Reference

_MoveOrCopyRuleAction Interface

_MoveOrCopyRuleAction Members

Microsoft.Office.Interop.Outlook Namespace