RNGCryptoServiceProvider.GetBytes Method
Silverlight
Fills an array of bytes with a cryptographically strong sequence of random values.
Namespace: System.Security.Cryptography
Assembly: mscorlib (in mscorlib.dll)
Parameters
- data
- Type: System.Byte[]
The array to fill with a cryptographically strong sequence of random values.
| Exception | Condition |
|---|---|
| CryptographicException | The cryptographic service provider (CSP) cannot be acquired. |
| ArgumentNullException | data is null. |
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.