Share via


_Table.FindRow Method

Finds the first row in the Table that meets the criteria specified in Filter.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Function FindRow ( _
    Filter As String _
) As Row
'Usage
Dim instance As _Table
Dim Filter As String
Dim returnValue As Row

returnValue = instance.FindRow(Filter)
[DispIdAttribute()]
Row FindRow(
    string Filter
)

Parameters

  • Filter
    Type: System.String

    Specifies the condition that a row in the Table has to meet.

Return Value

Type: Microsoft.Office.Interop.Outlook.Row
A Row object that represents the first row in the Table that meets the filter criteria. Returns Nothing (a null reference (Nothing in Visual Basic) in C#) if no such row can be found, or the Table does not contain any rows.

Remarks

FindRow always starts from the first row in the Table.

FindRow returns Nothing (a null reference (Nothing in Visual Basic) in C#) if a property in Filter does not exist in the specified namespace. The property is considered a named property in the MAPI property set, PS_PUBLIC_STRINGS. FindRow does not return an error in this case.

FindRow returns an error if Filter is a blank string or an invalid restriction. In cases where FindRow does not find any row, the current row will not be repositioned to where it was before the call to FindRow.

To use content indexing search in a Table, use the Restrict method. FindRow returns an error if Filter contains content indexing keywords.

See Also

Reference

_Table Interface

_Table Members

Microsoft.Office.Interop.Outlook Namespace