SymmetricAlgorithm.Mode 属性

定义

获取或设置对称算法的运算模式。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

属性值

对称算法的运算模式。The mode for operation of the symmetric algorithm. 默认值为 CBCThe default is CBC.

异常

该密码模式不是 CipherMode 值之一。The cipher mode is not one of the CipherMode values.

注解

有关CipherMode特定模式的说明,请参阅枚举。See CipherMode enumeration for a description of specific modes.

适用于

另请参阅