Rediger

Del via


AesCryptoServiceProvider.GenerateKey Method

Definition

Generates a random key to use for the algorithm.

public:
 override void GenerateKey();
public override void GenerateKey ();
[System.Security.SecurityCritical]
public override void GenerateKey ();
override this.GenerateKey : unit -> unit
[<System.Security.SecurityCritical>]
override this.GenerateKey : unit -> unit
Public Overrides Sub GenerateKey ()
Attributes

Exceptions

The key could not be generated.

Applies to