This documentation is archived and is not being maintained.

AesCryptoServiceProvider.CreateDecryptor Method

Creates a symmetric AES decryptor object using the current key and initialization vector (IV).

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

public override ICryptoTransform CreateDecryptor()

Return Value

Type: System.Security.Cryptography.ICryptoTransform
A symmetric AES decryptor object.

ExceptionCondition
CryptographicException

The current key is invalid or missing.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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
Show: