Syntax

C#
public class SmtpResponse
Visual Basic (Declaration)
Public Class SmtpResponse
Visual C++
public ref class SmtpResponse

The type exposes the following members.

Public Constructors

  NameDescription
Public methodSmtpResponseSmtpResponseNew
Parses the response. Removes Codes from begining of every line. Runs Parse(array<String>[]()) method. Fills Message and Code and Linesproperties.

Public Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the Message property.
(Overrides Object..::ToString()().)

Protected Methods

  NameDescription
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodParse
Parses the response. Removes Codes from begining of every line. Fills Message and Code and Linesproperties.

Public Properties

  NameDescription
Public propertyCode
Gets the status code. 2yz is positive completion reply; 3yz is positive intermediate reply; Other is negative.
Public propertyIsPositive
Gets the status of Code. True if Code is between 200 and 399.
Public propertyLines
Lines returned from server. Every line is striped off of Code and '-' char at the beginig and without '\r\n' at the end.
Public propertyMessage
First line of the response.

See Also