Catalyst Internet Mail .NET

InternetMail.Secure Property

Gets and sets a value which specifies if a secure connection is established.

[Visual Basic]
Public Property Secure As Boolean
[C#]
public bool Secure {get; set;}

Property Value

Returns true if a secure connection is established; otherwise returns false. The default value is false.

Remarks

The Secure property determines if a secure connection is established with the remote host. The default value for this property is false, which specifies that a standard connection to the server is used. To establish a secure connection, the application should set this property value to true prior to calling the Connect method. Once the connection has been established, the client may exchange data with the server as with standard connections.

It is strongly recommended that any application that sets this property true use error handling to trap an errors that may occur. If the control is unable to initialize the security libraries, or otherwise cannot create a secure session for the client, an exception may be generated when this property value is set.

See Also

InternetMail Class | SocketTools Namespace