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()
[C#]
public abstract byte[] GenerateMask(
 byte[] rgbSeed,
 int cbReturn
);
[C++]
public: virtual unsigned char GenerateMask(
 unsigned char rgbSeed __gc[],
 int cbReturn
)  __gc[] = 0;
[JScript]
public abstract function GenerateMask(
   rgbSeed : Byte[],
 cbReturn : int
) : Byte[];

Parameters

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

Return Value

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

Requirements

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

Show: