共用方式為


WebApplicationFactoryClientOptions.BaseAddress 屬性

定義

取得或設定呼叫 所 CreateClient(WebApplicationFactoryClientOptions) 建立之實例的 HttpClient 基底位址。 預設為 http://localhost

public:
 property Uri ^ BaseAddress { Uri ^ get(); void set(Uri ^ value); };
public Uri BaseAddress { get; set; }
member this.BaseAddress : Uri with get, set
Public Property BaseAddress As Uri

屬性值

Uri

適用於