CngProperty CngProperty CngProperty CngProperty Struct

定義

封裝 Cryptography Next Generation (CNG) 金鑰或提供者的屬性。Encapsulates a property of a Cryptography Next Generation (CNG) key or provider.

public value class CngProperty : IEquatable<System::Security::Cryptography::CngProperty>
public struct CngProperty : IEquatable<System.Security.Cryptography.CngProperty>
type CngProperty = struct
Public Structure CngProperty
Implements IEquatable(Of CngProperty)
繼承
CngPropertyCngPropertyCngPropertyCngProperty
實作

備註

這個類別會封裝的屬性名稱 (字串) 值 (位元組陣列)CngPropertyOptions旗標,存取子屬性,並比較和雜湊函式。This class encapsulates a property name (a string), a value (byte array), a CngPropertyOptions flag, accessor properties, and comparison and hashing functions.

此類別會搭配SetPropertyGetProperty方法。This class is used with the SetProperty and GetProperty methods.

建構函式

CngProperty(String, Byte[], CngPropertyOptions) CngProperty(String, Byte[], CngPropertyOptions) CngProperty(String, Byte[], CngPropertyOptions) CngProperty(String, Byte[], CngPropertyOptions)

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

屬性

Name Name Name Name

取得目前 CngProperty 物件指定的屬性名稱。Gets the property name that the current CngProperty object specifies.

Options Options Options Options

取得目前 CngProperty 物件指定的屬性選項。Gets the property options that the current CngProperty object specifies.

方法

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

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

Equals(CngProperty) Equals(CngProperty) Equals(CngProperty) Equals(CngProperty)

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

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

產生目前 CngProperty 物件的雜湊值。Generates a hash value for the current CngProperty object.

GetValue() GetValue() GetValue() GetValue()

取得目前 CngProperty 物件指定的屬性值。Gets the property value that the current CngProperty object specifies.

運算子

Equality(CngProperty, CngProperty) Equality(CngProperty, CngProperty) Equality(CngProperty, CngProperty) Equality(CngProperty, CngProperty)

判斷兩個 CngProperty 物件指定的屬性名稱、值和選項是否相同。Determines whether two CngProperty objects specify the same property name, value, and options.

Inequality(CngProperty, CngProperty) Inequality(CngProperty, CngProperty) Inequality(CngProperty, CngProperty) Inequality(CngProperty, CngProperty)

判斷兩個 CngProperty 物件是否未指定相同的屬性名稱、值和選項。Determines whether two CngProperty objects do not specify the same property name, value, and options.

適用於