_Rules.Remove Method
Removes from the Rules collection 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()> _
Sub Remove ( _
Index As Object _
)
'Usage
Dim instance As _Rules
Dim Index As Object
instance.Remove(Index)
[DispIdAttribute()]
void Remove(
Object Index
)
Parameters
Index
Type: System.ObjectEither an Integer (int in C#) 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.
Remarks
Returns an error when the rule cannot be found in the collection.