MailMergeDataSource.RecordCount Property

Returns an Integer that represents the number of records in the data source.

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

Syntax

'Declaration
ReadOnly Property RecordCount As Integer
    Get
'Usage
Dim instance As MailMergeDataSource
Dim value As Integer

value = instance.RecordCount
int RecordCount { get; }

Property Value

Type: System.Int32

Remarks

If Microsoft Word cannot determine the number of records in a data source, the RecordCount property will return a value of -1.

See Also

Reference

MailMergeDataSource Interface

MailMergeDataSource Members

Microsoft.Office.Interop.Word Namespace