Partager via


_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.Object

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

See Also

Reference

_Rules Interface

_Rules Members

Microsoft.Office.Interop.Outlook Namespace