Uredi

Deli z drugimi prek


RandomNumberGenerator.Create Method

Definition

Creates an instance of an implementation of a cryptographic random number generator.

Overloads

Create()

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

Create(String)
Obsolete.

Creates an instance of the specified implementation of a cryptographic random number generator.

Create()

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

Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.

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

Returns

A new instance of a cryptographic random number generator.

See also

Applies to

Create(String)

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

Caution

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

Creates an instance of the specified implementation of a cryptographic random number generator.

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

Parameters

rngName
String

The name of the random number generator implementation to use.

Returns

A new instance of a cryptographic random number generator.

Attributes

See also

Applies to