Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SymmetricAlgorithm.IV Property

Gets or sets the initialization vector (IV) for the symmetric algorithm.

[Visual Basic]
Public Overridable Property IV As Byte ()
[C#]
public virtual byte[] IV {get; set;}
[C++]
public: __property virtual unsigned char get_IV();
public: __property virtual void set_IV(unsigned char __gc[]);
[JScript]
public function get IV() : Byte[];
public function set IV(Byte[]);

Property Value

The initialization vector.

Exceptions

Exception Type Condition
ArgumentNullException An attempt is made to set the IV to a null reference (Nothing in Visual Basic).
CryptographicException An attempt is made to set the IV to an invalid size.

Remarks

If this property is a null reference (Nothing in Visual Basic) when it is used, GenerateIV is called to create a new random value.

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

SymmetricAlgorithm Class | SymmetricAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft