CngAlgorithmGroup 類別

定義

封裝加密演算法群組的名稱。Encapsulates the name of an encryption algorithm group.

public ref class CngAlgorithmGroup sealed : IEquatable<System::Security::Cryptography::CngAlgorithmGroup ^>
public sealed class CngAlgorithmGroup : IEquatable<System.Security.Cryptography.CngAlgorithmGroup>
[System.Serializable]
public sealed class CngAlgorithmGroup : IEquatable<System.Security.Cryptography.CngAlgorithmGroup>
type CngAlgorithmGroup = class
    interface IEquatable<CngAlgorithmGroup>
[<System.Serializable>]
type CngAlgorithmGroup = class
    interface IEquatable<CngAlgorithmGroup>
Public NotInheritable Class CngAlgorithmGroup
Implements IEquatable(Of CngAlgorithmGroup)
繼承
CngAlgorithmGroup
屬性
實作

備註

CngAlgorithmGroup類別是公用程式類別。The CngAlgorithmGroup class is a utility class. 它是由靜態屬性、比較方法和私用、內部維護的字串所組成,此字串會定義演算法組名。It consists of static properties, comparison methods, and a private, internally maintained string that defines an algorithm group name.

靜態屬性會傳回 CngAlgorithmGroup 物件。The static properties return CngAlgorithmGroup objects. 每個物件的內部字串都會初始化為演算法組名,該名稱會對應至靜態屬性的名稱。Each object's internal string is initialized to the algorithm group name that corresponds to the name of the static property.

您也可以使用這個類別,針對非靜態屬性所涵蓋的演算法群組建立物件。You can also use this class to create objects for algorithm groups that are not covered by the static properties.

許多新一代密碼編譯 (CNG) 類別 (例如 CngKey) 傳回 CngAlgorithmGroup 物件。Several Cryptography Next Generation (CNG) classes (such as CngKey) return CngAlgorithmGroup objects. 接收物件的類別 CngAlgorithm 可以藉由呼叫物件的屬性來取得內嵌的演算法組名 AlgorithmGroupClasses that receive CngAlgorithm objects can retrieve the embedded algorithm group name by calling the object's AlgorithmGroup property.

因此,會 CngAlgorithmGroup 作為已知演算法群組的列舉。Therefore, CngAlgorithmGroup serves as an enumeration of well-known algorithm groups. 它可讓您使用強型別值(而非字串)來指定演算法組名。It lets you specify an algorithm group name by using a strongly typed value instead of a string.

建構函式

CngAlgorithmGroup(String)

初始化 CngAlgorithmGroup 類別的新執行個體。Initializes a new instance of the CngAlgorithmGroup class.

屬性

AlgorithmGroup

取得目前 CngAlgorithm 物件所指定的演算法群組名稱。Gets the name of the algorithm group that the current CngAlgorithm object specifies.

DiffieHellman

取得 CngAlgorithmGroup 物件,指定 Diffie-Hellman 系列的演算法。Gets a CngAlgorithmGroup object that specifies the Diffie-Hellman family of algorithms.

Dsa

取得 CngAlgorithmGroup 物件,指定 Digital Signature Algorithm (DSA) 系列的演算法。Gets a CngAlgorithmGroup object that specifies the Digital Signature Algorithm (DSA) family of algorithms.

ECDiffieHellman

取得 CngAlgorithmGroup 物件,指定 Elliptic Curve Diffie-Hellman (ECDH) 系列的演算法。Gets a CngAlgorithmGroup object that specifies the Elliptic Curve Diffie-Hellman (ECDH) family of algorithms.

ECDsa

取得 CngAlgorithmGroup 物件,指定 Elliptic Curve Digital Signature Algorithm (ECDSA) 系列的演算法。Gets a CngAlgorithmGroup object that specifies the Elliptic Curve Digital Signature Algorithm (ECDSA) family of algorithms.

Rsa

取得 CngAlgorithmGroup 物件,指定 Rivest-Shamir-Adleman (RSA) 系列的演算法。Gets a CngAlgorithmGroup object that specifies the Rivest-Shamir-Adleman (RSA) family of algorithms.

方法

Equals(CngAlgorithmGroup)

將指定的 CngAlgorithmGroup 物件與目前的 CngAlgorithmGroup 物件相比較。Compares the specified CngAlgorithmGroup object to the current CngAlgorithmGroup object.

Equals(Object)

將指定的物件與目前的 CngAlgorithmGroup 物件相比較。Compares the specified object to the current CngAlgorithmGroup object.

GetHashCode()

針對目前 CngAlgorithmGroup 物件中內嵌的演算法群組名稱產生雜湊值。Generates a hash value for the algorithm group name that is embedded in the current CngAlgorithmGroup object.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

取得目前 CngAlgorithm 物件所指定的演算法群組名稱。Gets the name of the algorithm group that the current CngAlgorithm object specifies.

運算子

Equality(CngAlgorithmGroup, CngAlgorithmGroup)

判斷兩個 CngAlgorithmGroup 物件是否指定相同的演算法群組。Determines whether two CngAlgorithmGroup objects specify the same algorithm group.

Inequality(CngAlgorithmGroup, CngAlgorithmGroup)

判斷兩個 CngAlgorithmGroup 物件是否未指定相同的演算法群組。Determines whether two CngAlgorithmGroup objects do not specify the same algorithm group.

適用於