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
| Name | Description | |
|---|---|---|
| SmtpResponseSmtpResponseNew |
Parses the response.
Removes Codes from begining of every line.
Runs Parse(array<String>[]()) method.
Fills Message and Code
and Linesproperties.
|
Public Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | 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.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString |
Returns the Message property.
(Overrides Object..::ToString()().) |
Protected Methods
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Parse |
Public Properties
| Name | Description | |
|---|---|---|
| Code |
Gets the status code.
2yz is positive completion reply;
3yz is positive intermediate reply;
Other is negative.
| |
| IsPositive | ||
| Lines |
Lines returned from server.
Every line is striped off of Code and '-' char at the beginig
and without '\r\n' at the end.
| |
| Message |
First line of the response.
|
See Also
Lesnikowski.Client Namespace