次の方法で共有


RuleActions Interface

The RuleActions object contains a set of RuleAction objects or objects derived from RuleAction, representing the actions that are executed on a Rule object.

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

Syntax

'Declaration
<GuidAttribute("000630CE-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(RuleActionsClass))> _
Public Interface RuleActions _
    Inherits _RuleActions
'Usage
Dim instance As RuleActions
[GuidAttribute("000630CE-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(RuleActionsClass))]
public interface RuleActions : _RuleActions

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _RuleActions.

The RuleActions object is a fixed collection. RuleAction objects or types that derive from the RuleAction object cannot be added to or removed from the RuleActions object.

The Rules object model provides partial parity with the Rules and Alerts Wizard in the Outlook user interface. It supports the most commonly used rule actions and conditions. Although it does not support creating rules with any rule action or rule condition that the Wizard supports, you can still enumerate and enable these rule actions and conditions in existing rules.

For more information on rule actions, see Specify Rule Actions and How to: Create a Rule to Move Specific E-mails to a Folder.

See Also

Reference

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

How to: Execute a Rule on a Local Computer

How to: Create a Rule to Assign Categories to Mail Items Based on Multiple Words in the Subject