语言

BaseAbstractAcquireTokenParameterBuilder<T>.WithExtraQueryParameters 方法

定义

重载

名称 说明
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 身份验证请求中的查询字符串,作为用和字符分隔的表单 key=value 段的字符串。 参数可以为 null。

返回

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 应为 true。 参数可以为 null。

返回

T

要链接的生成器。使用方法。

适用于