This documentation is archived and is not being maintained.

DeriveBytes.GetBytes Method

When overridden in a derived class, returns pseudo-random key bytes.

[Visual Basic]
Public MustOverride Function GetBytes( _
   ByVal cb As Integer _
) As Byte()
public abstract byte[] GetBytes(
 int cb
public: virtual unsigned char GetBytes(
 int cb
)  __gc[] = 0;
public abstract function GetBytes(
   cb : int
) : Byte[];


The number of pseudo-random key bytes to generate.

Return Value

A byte array filled with pseudo-random key bytes.


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

See Also

DeriveBytes Class | DeriveBytes Members | System.Security.Cryptography Namespace | Cryptographic Services