SymmetricSecurityKey.GetSymmetricAlgorithm Method (String)


When overridden in a derived class, gets an instance of the specified symmetric algorithm.

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

public abstract SymmetricAlgorithm GetSymmetricAlgorithm(
	string algorithm


Type: System.String

The symmetric algorithm to get an instance of.

Return Value

Type: System.Security.Cryptography.SymmetricAlgorithm

A SymmetricAlgorithm that represents the symmetric algorithm.

Use the fields that represent symmetric algorithms in the SecurityAlgorithms class to specify the algorithm.

.NET Framework
Available since 3.0
Return to top