Compartir vía


RandomNumberGenerator.Create Método

Definición

Crea una instancia de una implementación de un generador de números aleatorios criptográficos.

Sobrecargas

Create()

Crea una instancia de la implementación predeterminada de un generador de números aleatorios criptográficos que se puede usar para generar datos aleatorios.

Create(String)
Obsoletos.

Crea una instancia de la implementación especificada de un generador de números aleatorios criptográficos.

Create()

Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs

Crea una instancia de la implementación predeterminada de un generador de números aleatorios criptográficos que se puede usar para generar datos aleatorios.

public:
 static System::Security::Cryptography::RandomNumberGenerator ^ Create();
public static System.Security.Cryptography.RandomNumberGenerator Create ();
static member Create : unit -> System.Security.Cryptography.RandomNumberGenerator
Public Shared Function Create () As RandomNumberGenerator

Devoluciones

Nueva instancia de un generador de números aleatorios criptográficos.

Consulte también

Se aplica a

Create(String)

Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs

Precaución

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

Crea una instancia de la implementación especificada de un generador de números aleatorios criptográficos.

public:
 static System::Security::Cryptography::RandomNumberGenerator ^ Create(System::String ^ rngName);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public static System.Security.Cryptography.RandomNumberGenerator? Create (string rngName);
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.RandomNumberGenerator? Create (string rngName);
public static System.Security.Cryptography.RandomNumberGenerator Create (string rngName);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
static member Create : string -> System.Security.Cryptography.RandomNumberGenerator
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.RandomNumberGenerator
static member Create : string -> System.Security.Cryptography.RandomNumberGenerator
Public Shared Function Create (rngName As String) As RandomNumberGenerator

Parámetros

rngName
String

Nombre de la implementación del generador de números aleatorios que se va a usar.

Devoluciones

Nueva instancia de un generador de números aleatorios criptográficos.

Atributos

Consulte también

Se aplica a