AesManaged.Mode Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
CryptographicException

Mode is set to CFB or OFB.

The CFB and OFB modes are not supported.

.NET Framework
Available since 3.5
Return to top
Show: