Initializes an RSA object from the key information from an XML string.
Assembly: mscorlib (in mscorlib.dll)
The initializes an RSA object using key information in an XML string that was generated using the ToXmlString method. The method accepts either an XML string containing a public key or an XML string containing a public and private key.
Use the method to conveniently initialize RSA key information.
Persisting an XML string containing a private key to an insecure location is a security threat. The security of your application can be compromised if a malicious third party can access your private key. To safely persist a private key, use a secure key container. For more information about persisting private keys in a key container, see How to: Store Asymmetric Keys in a Key Container.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.