HashMembershipCondition 類別

定義

測試組件的雜湊值 (Hash Value) 藉此判斷組件是否屬於程式碼群組。Determines whether an assembly belongs to a code group by testing its hash value. 這個類別無法被繼承。This class cannot be inherited.

public ref class HashMembershipCondition sealed : System::Runtime::Serialization::IDeserializationCallback, System::Runtime::Serialization::ISerializable, System::Security::Policy::IMembershipCondition
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class HashMembershipCondition : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, System.Security.Policy.IMembershipCondition
type HashMembershipCondition = class
    interface IMembershipCondition
    interface IDeserializationCallback
    interface ISerializable
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
Public NotInheritable Class HashMembershipCondition
Implements IDeserializationCallback, IMembershipCondition, ISerializable
繼承
HashMembershipCondition
屬性
實作

建構函式

HashMembershipCondition(HashAlgorithm, Byte[])

使用判斷成員資格的雜湊演算法和雜湊值,初始化 HashMembershipCondition 類別的新執行個體。Initializes a new instance of the HashMembershipCondition class with the hash algorithm and hash value that determine membership.

屬性

HashAlgorithm

取得或設定要用於成員資格條件的雜湊演算法。Gets or sets the hash algorithm to use for the membership condition.

HashValue

取得或設定用來測試成員資格條件的雜湊值。Gets or sets the hash value for which the membership condition tests.

方法

Check(Evidence)

判斷指定的辨識項是否符合成員資格條件。Determines whether the specified evidence satisfies the membership condition.

Copy()

建立成員資格條件的相等複本。Creates an equivalent copy of the membership condition.

Equals(Object)

判斷來自指定物件的 HashValueHashAlgorithm 是否等同於目前 HashValue 中所包含的 HashAlgorithmHashMembershipConditionDetermines whether the HashValue and the HashAlgorithm from the specified object are equivalent to the HashValue and HashAlgorithm contained in the current HashMembershipCondition.

FromXml(SecurityElement)

透過 XML 編碼,重新建構具有指定狀態的安全性物件。Reconstructs a security object with a specified state from an XML encoding.

FromXml(SecurityElement, PolicyLevel)

透過 XML 編碼,重新建構具有指定狀態的安全性物件。Reconstructs a security object with a specified state from an XML encoding.

GetHashCode()

取得目前成員資格條件的雜湊程式碼。Gets the hash code for the current membership condition.

GetType()

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

(繼承來源 Object)
MemberwiseClone()

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

(繼承來源 Object)
ToString()

建立並傳回成員資格條件的字串表示。Creates and returns a string representation of the membership condition.

ToXml()

建立安全物件及其目前狀態的 XML 編碼方式。Creates an XML encoding of the security object and its current state.

ToXml(PolicyLevel)

使用指定的 PolicyLevel,建立安全性物件的 XML 編碼方式和它的目前狀態。Creates an XML encoding of the security object and its current state with the specified PolicyLevel.

明確介面實作

IDeserializationCallback.OnDeserialization(Object)

執行於整個物件 Graph 已經還原序列化時。Runs when the entire object graph has been deserialized.

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

將序列化目標物件所需的資料填入 SerializationInfoPopulates a SerializationInfo with the data needed to serialize the target object.

適用於