GetBytes Method
Collapse the table of content
Expand the table of content

RandomNumberGenerator.GetBytes Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When overridden in a derived class, fills an array of bytes with a cryptographically strong, random sequence of values.

Namespace:  System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public abstract void GetBytes(
	byte[] data
)

Parameters

data
Type: System.Byte []
The array to fill with cryptographically strong, random bytes.

The length of the byte array determines how many random bytes are produced.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft