共用方式為


RequestBuilder.And(Action<HttpRequestMessage>) 方法

定義

設定任何 HttpRequestMessage 屬性。

public:
 Microsoft::AspNetCore::TestHost::RequestBuilder ^ And(Action<System::Net::Http::HttpRequestMessage ^> ^ configure);
public Microsoft.AspNetCore.TestHost.RequestBuilder And (Action<System.Net.Http.HttpRequestMessage> configure);
member this.And : Action<System.Net.Http.HttpRequestMessage> -> Microsoft.AspNetCore.TestHost.RequestBuilder
Public Function And (configure As Action(Of HttpRequestMessage)) As RequestBuilder

參數

傳回

RequestBuilder 用於鏈結。

適用於