Export (0) Print
Expand All

RNGCryptoServiceProvider Class

Implements a cryptographic Random Number Generator (RNG) using the implementation provided by the cryptographic service provider (CSP).

For a list of all members of this type, see RNGCryptoServiceProvider Members.

System.Object
   System.Security.Cryptography.RandomNumberGenerator
      System.Security.Cryptography.RNGCryptoServiceProvider

[Visual Basic]
NotInheritable Public Class RNGCryptoServiceProvider
   Inherits RandomNumberGenerator
[C#]
public sealed class RNGCryptoServiceProvider :
   RandomNumberGenerator
[C++]
public __gc __sealed class RNGCryptoServiceProvider : public
   RandomNumberGenerator
[JScript]
public class RNGCryptoServiceProvider extends RandomNumberGenerator

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Requirements

Namespace: System.Security.Cryptography

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

RNGCryptoServiceProvider Members | System.Security.Cryptography Namespace | Cryptographic Services

Show:
© 2014 Microsoft