RandomNumberGenerator.Create 方法

定义

创建加密随机数生成器的实现的实例。

重载

Create()

创建可用于生成随机数据的加密随机数生成器默认实现的实例。

Create(String)
已过时.

创建加密随机数生成器指定实现的实例。

Create()

Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
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)

Source:
RandomNumberGenerator.cs
Source:
RandomNumberGenerator.cs
Source:
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

要使用的随机数生成器实现的名称。

返回

加密随机数生成器的新实例。

属性

另请参阅

适用于