Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

AsymmetricKeyExchangeDeformatter.SetKey Method

When overridden in a derived class, sets the private key to use for decrypting the secret information.

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

public abstract void SetKey(
	AsymmetricAlgorithm key
)

Parameters

key
Type: System.Security.Cryptography.AsymmetricAlgorithm
The instance of the implementation of AsymmetricAlgorithm that holds the private key.

You must set a key before calling a DecryptKeyExchange implementation.

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2015 Microsoft