Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SymmetricAlgorithm.Mode Property

Definition

Namespace:
System.Security.Cryptography
Assemblies:
netstandard.dll, System.Security.Cryptography.dll
Assemblies:
netstandard.dll, System.Security.Cryptography.Primitives.dll
Assembly:
System.Security.Cryptography.Primitives.dll
Assembly:
mscorlib.dll
Assembly:
netstandard.dll
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs
Source:
SymmetricAlgorithm.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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

public:
 virtual property System::Security::Cryptography::CipherMode Mode { System::Security::Cryptography::CipherMode get(); void set(System::Security::Cryptography::CipherMode value); };
public virtual System.Security.Cryptography.CipherMode Mode { get; set; }
member this.Mode : System.Security.Cryptography.CipherMode with get, set
Public Overridable Property Mode As CipherMode

Property Value

The mode for operation of the symmetric algorithm. The default is CBC.

Exceptions

The cipher mode is not one of the CipherMode values.

Remarks

See CipherMode enumeration for a description of specific modes.

Applies to

See also


Feedback

Was this page helpful?