CngAlgorithmGroup CngAlgorithmGroup CngAlgorithmGroup CngAlgorithmGroup Class

定義

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

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

備註

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.

數個 Cryptography Next Generation (CNG) 類別 (例如CngKey) 傳回CngAlgorithmGroup物件。Several Cryptography Next Generation (CNG) classes (such as CngKey) return CngAlgorithmGroup objects. 類別會接收CngAlgorithm物件可以擷取內嵌的演算法群組名稱,藉由呼叫物件的AlgorithmGroup屬性。Classes 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(String) CngAlgorithmGroup(String) CngAlgorithmGroup(String)

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

屬性

AlgorithmGroup AlgorithmGroup AlgorithmGroup AlgorithmGroup

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

DiffieHellman DiffieHellman DiffieHellman DiffieHellman

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

Dsa Dsa Dsa Dsa

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

ECDiffieHellman ECDiffieHellman ECDiffieHellman ECDiffieHellman

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

ECDsa ECDsa ECDsa 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 Rsa Rsa Rsa

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

方法

Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup) Equals(CngAlgorithmGroup)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

運算子

Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup) Equality(CngAlgorithmGroup, CngAlgorithmGroup)

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

Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup) Inequality(CngAlgorithmGroup, CngAlgorithmGroup)

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

適用於