SmtpSession.IsConnected property
When overridden in a derived class, the IsConnected property returns a value that indicates whether the session is currently connected.
Namespace: Microsoft.Exchange.Data.Transport.Smtp
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property IsConnected As Boolean
Get
'Usage
Dim instance As SmtpSession
Dim value As Boolean
value = instance.IsConnected
public abstract bool IsConnected { get; }
Property value
Type: System.Boolean
When overridden in a derived class, the IsConnected property returns true if the connection is still established; otherwise, the property returns false.