_Rules.Item[Object] Property

Definition

Obtains a Rule object specified by Index, which is either a numerical index into the Rules collection or the rule name.

public:
 property Microsoft::Office::Interop::Outlook::Rule ^ default[System::Object ^] { Microsoft::Office::Interop::Outlook::Rule ^ get(System::Object ^ Index); };
public Microsoft.Office.Interop.Outlook.Rule this[object Index] { get; }
Default Public ReadOnly Property Item(Index As Object) As Rule

Parameters

Index
Object

Either 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, Name.

Property Value

A Rule object that matches the rule specified by Index.

Remarks

Returns an error when the rule cannot be found in the collection.

Applies to