RsaProtectedConfigurationProvider.AddKey Method (Int32, Boolean)

 
System_CAPS_noteNote

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

Adds a key to the RSA key container.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public void AddKey(
	int keySize,
	bool exportable
)

Parameters

keySize
Type: System.Int32

The size of the key to add.

exportable
Type: System.Boolean

true to indicate that the key is exportable; otherwise, false.

.NET Framework
Available since 2.0
Return to top
Show: