SmtpSession.IsTls Property

The IsTls property indicates whether the session use Transport Layer Security.

Namespace:  Microsoft.Exchange.Data.Transport.Smtp
Assembly:  Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)

Syntax

'Declaration
Public MustOverride ReadOnly Property IsTls As Boolean
    Get
'Usage
Dim instance As SmtpSession
Dim value As Boolean

value = instance.IsTls
public abstract bool IsTls { get; }

Property Value

Type: System.Boolean
The value of the IsTls property indicates true if Transport Layer Security is used for the session; otherwise, it indicates false.