Export (0) Print
Expand All
Expand Minimize

Saml2SecurityTokenHandler::CreateToken Method

.NET Framework 4.5

Creates a security token based on a token descriptor.

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

public:
virtual SecurityToken^ CreateToken(
	SecurityTokenDescriptor^ tokenDescriptor
) override

Parameters

tokenDescriptor
Type: System.IdentityModel.Tokens::SecurityTokenDescriptor

The token descriptor from which to create the security token.

Return Value

Type: System.IdentityModel.Tokens::SecurityToken
A SecurityToken that represents the SAML 2.0 security token. (The token returned is actually an instance of Saml2SecurityToken.)

ExceptionCondition
ArgumentNullException

tokenDescriptor is nullptr.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft