CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

CodeProtectHelpers..::..CreateRSA Method

Initializes an RSACryptoServiceProvider object from the key information provided by the XML string key.

Namespace:  CAS.Lib.CodeProtect.EnvironmentAccess
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public static RSACryptoServiceProvider CreateRSA(
	string key
)
Public Shared Function CreateRSA ( _
	key As String _
) As RSACryptoServiceProvider
public:
static RSACryptoServiceProvider^ CreateRSA(
	String^ key
)

Parameters

key
Type: String
The XML string containing key information for new RSA instance.

Return Value

A new instance of RSACryptoServiceProvider.

Exceptions


ExceptionCondition
CryptographicException The format of the key parameter is not valid.
ArgumentNullExceptionThe key parameter is null