NegotiateProtocol.ParseResponse 方法

定义

重载

ParseResponse(Stream)
已过时.

此方法已过时,并将从未来版本中删除。 建议的替代项为 ParseResponse(ReadOnlySpan<Byte>)

ParseResponse(ReadOnlySpan<Byte>)

NegotiationResponse 中的 content 分析为 Json。

ParseResponse(Stream)

Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs

注意

This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).

此方法已过时,并将从未来版本中删除。 建议的替代项为 ParseResponse(ReadOnlySpan<Byte>)

public:
 static Microsoft::AspNetCore::Http::Connections::NegotiationResponse ^ ParseResponse(System::IO::Stream ^ content);
public static Microsoft.AspNetCore.Http.Connections.NegotiationResponse ParseResponse (System.IO.Stream content);
[System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).")]
public static Microsoft.AspNetCore.Http.Connections.NegotiationResponse ParseResponse (System.IO.Stream content);
static member ParseResponse : System.IO.Stream -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse
[<System.Obsolete("This method is obsolete and will be removed in a future version. The recommended alternative is ParseResponse(ReadOnlySpan{byte}).")>]
static member ParseResponse : System.IO.Stream -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse
Public Shared Function ParseResponse (content As Stream) As NegotiationResponse

参数

content
Stream

返回

属性

适用于

ParseResponse(ReadOnlySpan<Byte>)

Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs
Source:
NegotiateProtocol.cs

NegotiationResponse 中的 content 分析为 Json。

public:
 static Microsoft::AspNetCore::Http::Connections::NegotiationResponse ^ ParseResponse(ReadOnlySpan<System::Byte> content);
public static Microsoft.AspNetCore.Http.Connections.NegotiationResponse ParseResponse (ReadOnlySpan<byte> content);
static member ParseResponse : ReadOnlySpan<byte> -> Microsoft.AspNetCore.Http.Connections.NegotiationResponse
Public Shared Function ParseResponse (content As ReadOnlySpan(Of Byte)) As NegotiationResponse

参数

content
ReadOnlySpan<Byte>

表示 的 Json 有效负载的 NegotiationResponse字节数。

返回

已分析的 NegotiationResponse

适用于