Export (0) Print
Expand All

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:
virtual property CipherMode Mode {
	CipherMode get () override;
	void set (CipherMode value) override;
}

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.

ExceptionCondition
CryptographicException

Mode is set to CFB or OFB.

The CFB and OFB modes are not supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft