Επεξεργασία

Κοινή χρήση μέσω


HttpResponseMessage.RequestMessage Property

Definition

Gets or sets the request message which led to this response message.

public:
 property System::Net::Http::HttpRequestMessage ^ RequestMessage { System::Net::Http::HttpRequestMessage ^ get(); void set(System::Net::Http::HttpRequestMessage ^ value); };
public System.Net.Http.HttpRequestMessage RequestMessage { get; set; }
public System.Net.Http.HttpRequestMessage? RequestMessage { get; set; }
member this.RequestMessage : System.Net.Http.HttpRequestMessage with get, set
Public Property RequestMessage As HttpRequestMessage

Property Value

The request message which led to this response message.

Remarks

This property is set to the request message which led to this response message. In the case of a request sent using HttpClient, this property will point to the actual request message leading to the final response. Note that this may not be the same message the user provided when sending the request. This is typically the case if the request needs to be resent due to redirects or authentication. This property can be used to determine what URL actually created the response (useful in case of redirects).

Applies to