Modifica

Condividi tramite


Action Interface

Definition

Represents a specialized action (for example, the voting options response) that can be executed on an Outlook item.

public interface class Action
[System.Runtime.InteropServices.Guid("00063043-0000-0000-C000-000000000046")]
public interface Action
Public Interface Action
Attributes

Remarks

The Action object is a member of the Actions collection.

Use Actions (index), where index is the name of an available action, to return a single Action object from the Actions collection object of an Outlook item, such as MailItem.

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

CopyLike

Returns or sets an OlActionCopyLike constant indicating the property inheritance style to use for the action. Read/write.

Enabled

Returns or sets a Boolean (bool in C#) that is True if the action is enabled in the application. Read/write.

MessageClass

Returns or sets a String (string in C#) representing the message class for the Action. Read/write.

Name

Returns or sets a String (string in C#) value that represents the display name for the Object. Read/write.

Parent

Returns the parent Object of the specified object. Read-only.

Prefix

Returns or sets a String (string in C#) specifying the prefix (for example, "Re") to use with the subject of the item when the action is executed. Read/write.

ReplyStyle

Returns or sets an OlActionReplyStyle constant indicating the text formatting reply style for the specified action. Read/write.

ResponseStyle

Returns or sets an OlActionResponseStyle constant indicating the response style used when the specified action is executed. Read/write.

Session

Returns the NameSpace object for the current session. Read-only.

ShowOn

Returns or sets an OlActionShowOn constant representing the location where the action will be shown. Read/write.

Methods

Delete()

Deletes an object from the collection.

Execute()

Executes the action for the specified item.

Applies to