次の方法で共有


_Table.GetRowCount Method

Obtains the number of rows in the Table.

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

Syntax

'Declaration
<DispIdAttribute()> _
Function GetRowCount As Integer
'Usage
Dim instance As _Table
Dim returnValue As Integer

returnValue = instance.GetRowCount()
[DispIdAttribute()]
int GetRowCount()

Return Value

Type: System.Int32
An Integer (int in C#) value that represents the number of rows in the Table.

Remarks

GetRowCount on a large table will result in a performance impact. Due to MAPI restrictions (for example, memory constraints for large tables, simultaneous operations on the Table), GetRowCount may not be able to determine the number of rows in the Table, or it may only only return an approximate row count. In these cases, GetRowCount will return an error. You should use appropriate error detection for GetRowCount to determine if the call returns an error.

See Also

Reference

_Table Interface

_Table Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get and Display Items in a Conversation

How to: Enumerate Items in a Table View