Share via


GenerateIV Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Generates a random initialization vector (IV) to use for the algorithm.

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

Syntax

'Declaration
Public Overrides Sub GenerateIV
public override void GenerateIV()
public:
virtual void GenerateIV() override
abstract GenerateIV : unit -> unit 
override GenerateIV : unit -> unit 
public override function GenerateIV()

Exceptions

Exception Condition
CryptographicException

The initialization vector (IV) could not be generated.

.NET Framework Security

See Also

Reference

AesCryptoServiceProvider Class

System.Security.Cryptography Namespace