Bagikan melalui


RandomNumberGenerator.Create Metode

Definisi

Membuat instans implementasi generator angka acak kriptografi.

Overload

Create()

Membuat instans implementasi default generator angka acak kriptografi yang dapat digunakan untuk menghasilkan data acak.

Create(String)
Kedaluwarsa.

Membuat instans implementasi generator angka acak kriptografi yang ditentukan.

Create()

Sumber:
RandomNumberGenerator.cs
Sumber:
RandomNumberGenerator.cs
Sumber:
RandomNumberGenerator.cs

Membuat instans implementasi default generator angka acak kriptografi yang dapat digunakan untuk menghasilkan data acak.

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

Mengembalikan

Instans baru generator angka acak kriptografi.

Lihat juga

Berlaku untuk

Create(String)

Sumber:
RandomNumberGenerator.cs
Sumber:
RandomNumberGenerator.cs
Sumber:
RandomNumberGenerator.cs

Perhatian

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

Membuat instans implementasi generator angka acak kriptografi yang ditentukan.

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

Parameter

rngName
String

Nama implementasi generator angka acak yang akan digunakan.

Mengembalikan

Instans baru generator angka acak kriptografi.

Atribut

Lihat juga

Berlaku untuk