Share via


CryptoKeyGenerator.GenerateKey(Int32) Method

Definition

Caution

This method will be deprecated in a future version.

Generates a key of the specified size.

[System.Obsolete("This method will be deprecated in a future version.")]
public static string GenerateKey (int keySize);
[<System.Obsolete("This method will be deprecated in a future version.")>]
static member GenerateKey : int -> string
Public Shared Function GenerateKey (keySize As Integer) As String

Parameters

keySize
Int32

Desired key size.

Returns

A generated key.

Attributes

Applies to