ClaimsPrincipal.PrimaryIdentitySelector 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置用于选择 Identity 属性返回的声明标识的委托。
public:
static property Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ PrimaryIdentitySelector { Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ get(); void set(Func<System::Collections::Generic::IEnumerable<System::Security::Claims::ClaimsIdentity ^> ^, System::Security::Claims::ClaimsIdentity ^> ^ value); };
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity> PrimaryIdentitySelector { get; [System.Security.SecurityCritical] set; }
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity?> PrimaryIdentitySelector { get; set; }
public static Func<System.Collections.Generic.IEnumerable<System.Security.Claims.ClaimsIdentity>,System.Security.Claims.ClaimsIdentity> PrimaryIdentitySelector { get; set; }
[<set: System.Security.SecurityCritical>]
member this.PrimaryIdentitySelector : Func<seq<System.Security.Claims.ClaimsIdentity>, System.Security.Claims.ClaimsIdentity> with get, set
member this.PrimaryIdentitySelector : Func<seq<System.Security.Claims.ClaimsIdentity>, System.Security.Claims.ClaimsIdentity> with get, set
Public Shared Property PrimaryIdentitySelector As Func(Of IEnumerable(Of ClaimsIdentity), ClaimsIdentity)
属性值
委托。 默认值为 null
。
- 属性
注解
可以设置此属性以替代属性的默认行为 Identity 。