語言

BaseAbstractAcquireTokenParameterBuilder<T>.WithExtraQueryParameters 方法

定義

多載

名稱 Description
WithExtraQueryParameters(Dictionary<String,String>)
已淘汰.

為 HTTP 認證請求中的查詢字串設定額外的查詢參數。

WithExtraQueryParameters(IDictionary<String,ValueTuple<String,Boolean>>)

為 HTTP 認證請求中的查詢字串設定額外查詢參數,並控制快取金鑰中包含哪些參數

WithExtraQueryParameters(Dictionary<String,String>)

警告

This method is deprecated. Use the WithExtraQueryParameters(IDictionary<string, (string value, bool includeInCacheKey)>) method instead, which provides control over which parameters are included in the cache key.

為 HTTP 認證請求中的查詢字串設定額外的查詢參數。

[System.Obsolete("This method is deprecated. Use the WithExtraQueryParameters(IDictionary<string, (string value, bool includeInCacheKey)>) method instead, which provides control over which parameters are included in the cache key.", false)]
public T WithExtraQueryParameters(System.Collections.Generic.Dictionary<string,string> extraQueryParameters);
[<System.Obsolete("This method is deprecated. Use the WithExtraQueryParameters(IDictionary<string, (string value, bool includeInCacheKey)>) method instead, which provides control over which parameters are included in the cache key.", false)>]
member this.WithExtraQueryParameters : System.Collections.Generic.Dictionary<string, string> -> 'T
Public Function WithExtraQueryParameters (extraQueryParameters As Dictionary(Of String, String)) As T

參數

extraQueryParameters
Dictionary<String,String>

此參數將以 HTTP 認證請求 中以 為 的段落串,並以 & 字元分隔,直接附加於 的查詢串中。 參數可以為零。

傳回

T

建構者用來串接 .用方法。

屬性

適用於

WithExtraQueryParameters(IDictionary<String,ValueTuple<String,Boolean>>)

為 HTTP 認證請求中的查詢字串設定額外查詢參數,並控制快取金鑰中包含哪些參數

public T WithExtraQueryParameters(System.Collections.Generic.IDictionary<string,(string Value, bool IncludeInCacheKey)> extraQueryParameters);
member this.WithExtraQueryParameters : System.Collections.Generic.IDictionary<string, ValueTuple<string, bool>> -> 'T
Public Function WithExtraQueryParameters (extraQueryParameters As IDictionary(Of String, ValueTuple(Of String, Boolean))) As T

參數

extraQueryParameters
IDictionary<String,ValueTuple<String,Boolean>>

此參數會直接附加在 HTTP 認證請求中對權威的查詢字串,並與應用層級的 WithExtraQueryParameters API 中新增的參數合併。 每個字典項目會將參數名稱映射到包含以下的元組:- 值:將附加到查詢字串後的參數值- IncludeInCacheKey:計算該標記快取金鑰時是否應包含此參數。 為確保從快取回傳正確的令牌,若參數影響標記內容或有效性(例如資源特定聲明或參數),IncludeInCacheKey 應為真。 參數可以為零。

傳回

T

建造者連接到 。用方法。

適用於