This documentation is archived and is not being maintained.

MaskGenerationMethod.GenerateMask Method

When overridden in a derived class, generates a mask with the specified length using the specified random seed.

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


The random seed to use to compute the mask.
The length of the generated mask in bytes.

Return Value

A randomly generated mask whose length is equal to the cbReturn parameter.


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

MaskGenerationMethod Class | MaskGenerationMethod Members | System.Security.Cryptography Namespace