你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RequestFailedDetailsParser.TryParse Method

Definition

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