CreateKey Method
Creates a new keyset associated with the provided name.
Syntax
[VB.NET] Public Sub CreateKey(ByVal KeyName As String)
[C#] public void CreateKey(string keyName);
Remarks
This method will create a new keyset (public/private key pair) within the Cryptographic Service Provider (CSP) used by the component. The CSP can be set using the CSP configuration setting.
NOTE: This functionality is only available in Windows.
NOTE: This method has a corresponding asynchronous version (CreateKeyAsync) for use in the Xamarin environment.