SslApplicationProtocol 结构

定义

表示 TLS 应用程序协议的值。Represents a value of TLS Application protocol.

public value class SslApplicationProtocol : IEquatable<System::Net::Security::SslApplicationProtocol>
public struct SslApplicationProtocol : IEquatable<System.Net.Security.SslApplicationProtocol>
type SslApplicationProtocol = struct
Public Structure SslApplicationProtocol
Implements IEquatable(Of SslApplicationProtocol)
继承
SslApplicationProtocol
实现

注解

此类型包含静态字段,其中包含 SslApplicationProtocol 用于 HTTP 版本的预定义值。This type contains static fields with predefined SslApplicationProtocol values for HTTP versions.

在握手期间,客户端会发送可用 ALPN 协议的列表,服务器将从该列表中选择最佳匹配项。During the handshake, the client sends a list of available ALPN protocols and the server chooses the best match from that list.

有关支持的协议的完整列表,请参阅 TLS 应用层协议协商 (ALPN) 协议 idFor a complete list of supported protocols, see TLS Application-Layer Protocol Negotiation (ALPN) Protocol IDs.

构造函数

SslApplicationProtocol(Byte[])

初始化 SslApplicationProtocol 的新实例。Initializes a new instance of the SslApplicationProtocol.

SslApplicationProtocol(String)

初始化 SslApplicationProtocol 的新实例。Initializes a new instance of the SslApplicationProtocol.

字段

Http11

获取表示 HTTP/1.1 TLS 应用程序协议的 SslApplicationProtocolGets a SslApplicationProtocol representing HTTP/1.1 TLS application protocol.

Http2

获取表示 HTTP/2 TLS 应用程序协议的 SslApplicationProtocolGets a SslApplicationProtocol representing HTTP/2 TLS application protocol.

属性

Protocol

获取此 SslApplicationProtocol 表示的当前的 TLS 应用程序协议。Gets a current TLS application protocol represented by this SslApplicationProtocol.

方法

Equals(Object)

SslApplicationProtocol 与指定的对象进行比较。Compares the SslApplicationProtocol to the specified object.

Equals(SslApplicationProtocol)

SslApplicationProtocol 与指定的 SslApplicationProtocol 实例进行比较。Compares a SslApplicationProtocol to the specified SslApplicationProtocol instance.

GetHashCode()

返回 SslApplicationProtocol 实例的哈希代码。Returns the hash code for the SslApplicationProtocol instance.

ToString()

重写 ToString() 方法。Overrides the ToString() method.

运算符

Equality(SslApplicationProtocol, SslApplicationProtocol)

用于比较两个 SslApplicationProtocol 对象的相等运算符。The equality operator for comparing two SslApplicationProtocol objects.

Inequality(SslApplicationProtocol, SslApplicationProtocol)

用于比较两个 SslApplicationProtocol 对象的不相等运算符。The inequality operator for comparing two SslApplicationProtocol objects.

适用于