SignInRequestMessage.Realm 属性

定义

获取或设置消息的 wtrealm 参数。

public:
 property System::String ^ Realm { System::String ^ get(); void set(System::String ^ value); };
public string Realm { get; set; }
member this.Realm : string with get, set
Public Property Realm As String

属性值

wtrealm 参数的值。 这被指定为 URI。

例外

设置完全无效的 URI 值的尝试发生。

注解

wtrealm 参数指定所请求资源所属的安全领域。 这通常是所请求资源的 URL。

重要

为了与 Active Directory 联合身份验证服务 (AD FS) 版本 1.0 向后兼容,Windows Identity Foundation (WIF) 允许将 wtrealm 参数或 wreply 参数设置为 (或两者) ,使登录消息有效;但是,WS-Federation 协议要求在登录请求中存在 wtrealm 参数。 在大多数情况下,应确保指定 wtrealm 参数。

Realm 属性设置为 null 或将空字符串设置为 以从消息中删除 wtrealm 参数。

适用于