AsymmetricAlgorithm.KeyExchangeAlgorithm Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When overridden in a derived class, gets the name of the key exchange algorithm. Otherwise, throws an NotImplementedException.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public virtual string KeyExchangeAlgorithm { get; }

Property Value

Type: System.String

The name of the key exchange algorithm.

The following code example demonstrates how to override the KeyExchangeAlgorithm property to return the name for the key exchange algorithm. This code example is part of a larger example provided for the AsymmetricAlgorithm class.

public override string KeyExchangeAlgorithm
    get {return "RSA-PKCS1-KeyEx";}

.NET Framework
Available since 1.1
Windows Phone Silverlight
Available since 7.1
Return to top