Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Saml2SecurityTokenHandler.SetDelegateFromAttribute Method

.NET Framework 4.5

This method gets called when a special type of Saml2Attribute is detected. The Saml2Attribute passed in wraps a Saml2Attribute 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(
	Saml2Attribute attribute,
	ClaimsIdentity subject,
	string issuer
)

Parameters

attribute
Type: System.IdentityModel.Tokens.Saml2Attribute

The Saml2Attribute 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 Saml2Attribute does not contain any valid attribute values.

.NET Framework

Supported in: 4.5.1, 4.5

Windows Phone 8.1, Windows Phone 8, 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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.