Saml2SecurityTokenHandler.SetDelegateFromAttribute Метод

Определение

Этот метод вызывается при обнаружении особого типа объекта Saml2Attribute. Переданный объект Saml2Attribute упаковывает объект Saml2Attribute, содержащий коллекцию значений атрибутов (в свойстве Values), каждый из которых сопоставляется утверждению. Все утверждения будут возвращены в ClaimsIdentity с указанным издателем.

protected:
 virtual void SetDelegateFromAttribute(System::IdentityModel::Tokens::Saml2Attribute ^ attribute, System::Security::Claims::ClaimsIdentity ^ subject, System::String ^ issuer);
protected virtual void SetDelegateFromAttribute (System.IdentityModel.Tokens.Saml2Attribute attribute, System.Security.Claims.ClaimsIdentity subject, string issuer);
abstract member SetDelegateFromAttribute : System.IdentityModel.Tokens.Saml2Attribute * System.Security.Claims.ClaimsIdentity * string -> unit
override this.SetDelegateFromAttribute : System.IdentityModel.Tokens.Saml2Attribute * System.Security.Claims.ClaimsIdentity * string -> unit
Protected Overridable Sub SetDelegateFromAttribute (attribute As Saml2Attribute, subject As ClaimsIdentity, issuer As String)

Параметры

attribute
Saml2Attribute

Используемый Saml2Attribute.

subject
ClaimsIdentity

ClaimsIdentity, который является субъектом этого токена.

issuer
String

Поставщик требования.

Исключения

Saml2Attribute не содержит допустимые значения атрибута.

Применяется к