RequestFailedDetailsParser.TryParse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses the error details from the provided Response.
public abstract bool TryParse (Azure.Response response, out Azure.ResponseError? error, out System.Collections.Generic.IDictionary<string,string>? data);
abstract member TryParse : Azure.Response * ResponseError * IDictionary -> bool
Public MustOverride Function TryParse (response As Response, ByRef error As ResponseError, ByRef data As IDictionary(Of String, String)) As Boolean
Parameters
- response
- Response
The Response to parse. The ContentStream will already be buffered.
- error
- ResponseError
The ResponseError describing the parsed error details.
- data
- IDictionary<String,String>
Data to be applied to the Data property.
Returns
true
if successful, otherwise false
.
Remarks
In various scenarios, parsers may be called for successful responses. Implementations should not populate error
or data
with sensitive information, as these values may be logged as part of the exception.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應