_RuleActions.Item Property
Obtains a RuleAction object specified by Index which is a numerical index into the RuleActions collection.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
ReadOnly Default Property Item ( _
Index As Integer _
) As RuleAction
Get
'Usage
Dim instance As _RuleActions
Dim Index As Integer
Dim value As RuleAction
value = instance(Index)
[DispIdAttribute()]
RuleAction this[
int Index
] { get; }
Parameters
Index
Type: System.Int32A 1-based numerical value that reflects the ordinal position of a rule action within the RuleActions collection. For example, the index value of the first rule action in the collection is 1, and the index value of the second rule action is 2.
Property Value
Type: Microsoft.Office.Interop.Outlook.RuleAction
A RuleAction object that matches the rule action specified by Index.
Remarks
The RuleActions collection object is a fixed collection. It contains RuleAction objects or objects derived from RuleAction. You cannot add or remove items from this collection, but you can use Item to enumerate the rule action items, and set the Enabled property of the rule action. When using Item to enumerate the collection, you can enumerate Index from 1 to Count.