Share via


_RuleConditions.Item Property

Obtains a RuleCondition object specified by Index which is a numerical index into the RuleConditions 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 RuleCondition
    Get
'Usage
Dim instance As _RuleConditions
Dim Index As Integer
Dim value As RuleCondition

value = instance(Index)
[DispIdAttribute()]
RuleCondition this[
    int Index
] { get; }

Parameters

  • Index
    Type: System.Int32

    A 1-based numerical value that reflects the ordinal position of a rule condition within the RuleConditions collection. For example, the index value of the first rule condition in the collection is 1, and the index value of the second rule condition is 2.

Property Value

Type: Microsoft.Office.Interop.Outlook.RuleCondition
A RuleCondition object that represents the specified object.

Remarks

The RuleConditions collection object is a fixed collection. It contains RuleCondition objects or objects derived from RuleCondition. You cannot add or remove items from this collection, but you can index into the collection to enumerate the rule condition items, and set the Enabled property of the rule condition. When using Item to enumerate the collection, you can enumerate Index from 1 to Count.

See Also

Reference

_RuleConditions Interface

_RuleConditions Members

Microsoft.Office.Interop.Outlook Namespace