Editare

Partajați prin


SslStream.NegotiatedCipherSuite Property

Definition

Important

This API is not CLS-compliant.

Gets the cipher suite which was negotiated for this connection.

public:
 virtual property System::Net::Security::TlsCipherSuite NegotiatedCipherSuite { System::Net::Security::TlsCipherSuite get(); };
[System.CLSCompliant(false)]
public virtual System.Net.Security.TlsCipherSuite NegotiatedCipherSuite { get; }
[<System.CLSCompliant(false)>]
member this.NegotiatedCipherSuite : System.Net.Security.TlsCipherSuite
Public Overridable ReadOnly Property NegotiatedCipherSuite As TlsCipherSuite

Property Value

One of the enumeration values that identifies the cipher suite which was negotiated for this connection.

Attributes

Exceptions

The property was accessed before the completion of the authentication process or the authentication process failed.

Remarks

This property gets the cipher suite that is going to be used in the communication between a client and server by the underlying SSL/TLS implementation. It is only available after a successful call to AuthenticateAsServer or AuthenticateAsClient.

Applies to