edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

FTPControlSocketValidateReply Method

Validate the response the host has supplied against the expected reply. If we get an unexpected reply we throw an exception, setting the message to that returned by the FTP server

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual FTPReply ValidateReply(
	FTPReply reply,
	params string[] expectedReplyCodes
)

Parameters

reply  FTPReply
reply object
expectedReplyCodes  String
array of expected replies

Return Value

FTPReply
reply object

See Also