IterationCount Property
Collapse the table of content
Expand the table of content

Rfc2898DeriveBytes.IterationCount Property


Gets or sets the number of iterations for the operation.

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

public int IterationCount { get; set; }

Property Value

Type: System.Int32

The number of iterations for the operation.

Exception Condition

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.

Snippet section 3 of code snippet {"project_id":"3fedad16-eaf1-41a6-8f96-0c1949c68f32","entity_id":"030fb7ec-208d-4c13-b825-7b63681ec4cb","entity_type":"CodeSnippet","locale":"en-US"} in source file ({"filename":"/CS/rfc28981.cs","blob_type":"Source","blob_id":"-002fcs-002frfc28981-002ecs","blob_revision":3}) overlaps with other snippet sections. Ensure the tags are placed correctly.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft