<PackageReference Include="Microsoft.Data.SqlClient" Version="7.0.0-preview1.25257.1" />

Microsoft.Data.SqlClient.Diagnostics.SqlClientConnectionOpenError

public sealed class SqlClientConnectionOpenError : IReadOnlyList<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable, IReadOnlyCollection<KeyValuePair<string, object>>
Contains diagnostic information emitted after a connection open fails with an exception.
public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenError"

The name of the event that needs to be enabled for the event to be raised.

public string ClientVersion { get; }

The version of the SqlClient library.

public SqlConnection Connection { get; }

The connection object that has been opened.

public Guid ConnectionId { get; }

The unique guid assigned to the connection.

public int Count { get; }

Gets the number of elements in the collection.

public Exception Exception { get; }

The exception object that caused the command execution to fail.

public KeyValuePair<string, object> this[int index] { get; }

Gets the element at the specified index in the read-only list.

public string Operation { get; }

The name of the operation.

public Guid OperationId { get; }

A guid value used to correlate before, after and error events.

public long Timestamp { get; }

The timestamp of the event.

public IEnumerator<KeyValuePair<string, object>> GetEnumerator()

Returns an enumerator that iterates through the collection.