AesManaged.Mode Property


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