Gets the message header and the specified number of lines from the message.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public string GetTop(
	int msg,
	int lines
)
Visual Basic
Public Function GetTop ( _
	msg As Integer, _
	lines As Integer _
) As String
Visual C++
public:
String^ GetTop(
	int msg, 
	int lines
)

Parameters

msg
Type: System..::..Int32
The one-based message Id.
lines
Type: System..::..Int32
The number of lines to get.

Return Value

The number of lines read.

Examples

This example reads the multiple-line response of the TOP command.
CopyPop GetTop
String response = myPop.GetTop(1, 10);

CopyPop GetTop
Dim response As String = myPop.GetTop(1, 10)

See Also