AesManaged.Mode Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the mode for operation of the symmetric algorithm.

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

public override CipherMode Mode { get; set; }

Property Value

Type: System.Security.Cryptography.CipherMode

One of the enumeration values that specifies the block cipher mode to use for encryption. The default is CBC.

Exception Condition

Mode is set to CFB or OFB.

The CFB and OFB modes are not supported.

.NET Framework
Available since 3.5
Return to top