Problem with IMAP/POP outlook/office 365 (Invalid response starting char.)

Thank’s!
When I debug, I get message with problems that I haven’t TLS 1.2

I solved with add this :

Const Tls12 As SslProtocols = DirectCast(&HC00, SslProtocols)
imap.Connect(Tls12)

Obtained from: