_Rules.Item Property
Obtains a Rule object specified by Index, which is either a numerical index into the Rules collection or the rule name.
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 Object _
) As Rule
Get
'Usage
Dim instance As _Rules
Dim Index As Object
Dim value As Rule
value = instance(Index)
[DispIdAttribute()]
Rule this[
Object Index
] { get; }
Parameters
Index
Type: System.ObjectEither a 1-based Integer (int in C#) value value representing an index into the Rules collection, or a String (string in C#) name representing the value of the default property of a rule, _Rule.Name.
Property Value
Type: Microsoft.Office.Interop.Outlook.Rule
A Rule object that matches the rule specified by Index.
Remarks
Returns an error when the rule cannot be found in the collection.