共用方式為


RandomNumberGenerator.Create 方法

定義

建立密碼編譯亂數產生器之實作的執行個體。

多載

Create()

建立預設之密碼編譯亂數產生器實作的執行個體,此產生器可以用來產生隨機資料。

Create(String)
已淘汰.

建立指定之密碼編譯亂數產生器實作的執行個體。

Create()

來源:
RandomNumberGenerator.cs
來源:
RandomNumberGenerator.cs
來源:
RandomNumberGenerator.cs

建立預設之密碼編譯亂數產生器實作的執行個體,此產生器可以用來產生隨機資料。

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

傳回

密碼編譯亂數產生器的新執行個體。

另請參閱

適用於

Create(String)

來源:
RandomNumberGenerator.cs
來源:
RandomNumberGenerator.cs
來源:
RandomNumberGenerator.cs

警告

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

建立指定之密碼編譯亂數產生器實作的執行個體。

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

參數

rngName
String

要使用的亂數產生器實作的名稱。

傳回

密碼編譯亂數產生器的新執行個體。

屬性

另請參閱

適用於