Export (0) Print
Expand All

KeySizes Constructor

Initializes a new instance of the KeySizes class with the specified key values.

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

public KeySizes (
	int minSize,
	int maxSize,
	int skipSize
)
public KeySizes (
	int minSize, 
	int maxSize, 
	int skipSize
)
public function KeySizes (
	minSize : int, 
	maxSize : int, 
	skipSize : int
)

Parameters

minSize

The minimum valid key size.

maxSize

The maximum valid key size.

skipSize

The interval between valid key sizes.

The newly created instance of KeySizes.

The following code shows the use of the KeySizes constructor. This code example is part of a larger example provided for the KeySizes class.

int minSize = 64;
int maxSize = 1024;
int skipSize = 64;
KeySizes keySizes = new KeySizes(minSize, maxSize, skipSize);

int minSize = 64;
int maxSize = 1024;
int skipSize = 64;
KeySizes keySizes = new KeySizes(minSize, maxSize, skipSize);

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft