Export (0) Print
Expand All
Expand Minimize

SamlSecurityTokenHandler.SetDelegateFromAttribute Method

.NET Framework 4.5

This method gets called when a special type of SamlAttribute is detected. The SamlAttribute passed in wraps a SamlAttribute that contains a collection of attribute values (in the Values property), each of which will get mapped to a claim. All of the claims will be returned in an ClaimsIdentity with the specified issuer.

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void SetDelegateFromAttribute(
	SamlAttribute attribute,
	ClaimsIdentity subject,
	string issuer
)

Parameters

attribute
Type: System.IdentityModel.Tokens.SamlAttribute

The SamlAttribute to use.

subject
Type: System.Security.Claims.ClaimsIdentity

The ClaimsIdentity that is the subject of this token.

issuer
Type: System.String

The issuer of the claim.

ExceptionCondition
InvalidOperationException

The SamlAttribute does not contain any valid attribute values.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft