NegotiateProtocol.ParseResponse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ParseResponse(Stream) |
已淘汰.
此方法已淘汰,將會在未來的版本中移除。 建議的替代做法是 ParseResponse(ReadOnlySpan<Byte>)。 |
ParseResponse(ReadOnlySpan<Byte>) |
從 |
ParseResponse(Stream)
警告
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>)
從 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。