Export (0) Print
Expand All

Rfc2898DeriveBytes.IterationCount Property

Updated: December 2008

Gets or sets the number of iterations for the operation.

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

public function get IterationCount () : int 
public function set IterationCount (value : int)

Property Value

Type: System.Int32
The number of iterations for the operation.

ExceptionCondition
ArgumentOutOfRangeException

The number of iterations is less than 1.

Iteration count is the number of times an operation is performed. For this method, the count should be greater than zero. The minimum recommended number of iterations is 1000.

The following example shows how to use the IterationCount property to display the number of iterations used in the generation of the key. This code example is part of a larger example provided for the Rfc2898DeriveBytes class.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

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

.NET Framework

Supported in: 3.5, 3.0, 2.0

Date

History

Reason

December 2008

Corrected example introduction.

Customer feedback.

Community Additions

ADD
Show:
© 2014 Microsoft