共用方式為


NegotiateProtocol.ParseResponse 方法

定義

多載

ParseResponse(Stream)
已淘汰.

此方法已淘汰,將會在未來的版本中移除。 建議的替代做法是 ParseResponse(ReadOnlySpan<Byte>)

ParseResponse(ReadOnlySpan<Byte>)

content 剖析 NegotiationResponse 為 Json。

ParseResponse(Stream)

來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
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>)

來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs
來源:
NegotiateProtocol.cs

content 剖析 NegotiationResponse 為 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>

表示 NegotiationResponse 的 Json 承載位元組。

傳回

剖析的 NegotiationResponse

適用於