HashMembershipCondition 类

定义

通过测试程序集的哈希值确定该程序集是否属于代码组。 此类不能被继承。

public ref class HashMembershipCondition sealed : System::Runtime::Serialization::IDeserializationCallback, System::Runtime::Serialization::ISerializable, System::Security::ISecurityEncodable, System::Security::Policy::IMembershipCondition
public ref class HashMembershipCondition sealed : System::Security::Policy::IMembershipCondition
public ref class HashMembershipCondition sealed : System::Runtime::Serialization::IDeserializationCallback, System::Runtime::Serialization::ISerializable
public sealed class HashMembershipCondition : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable, System.Security.ISecurityEncodable, System.Security.Policy.IMembershipCondition
[System.Serializable]
public sealed class HashMembershipCondition : System.Security.Policy.IMembershipCondition
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class HashMembershipCondition : System.Runtime.Serialization.IDeserializationCallback, System.Runtime.Serialization.ISerializable
type HashMembershipCondition = class
    interface IDeserializationCallback
    interface ISerializable
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
    interface IMembershipCondition
[<System.Serializable>]
type HashMembershipCondition = class
    interface IMembershipCondition
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type HashMembershipCondition = class
    interface ISerializable
    interface IDeserializationCallback
    interface IMembershipCondition
    interface ISecurityEncodable
    interface ISecurityPolicyEncodable
Public NotInheritable Class HashMembershipCondition
Implements IDeserializationCallback, IMembershipCondition, ISecurityEncodable, ISerializable
Public NotInheritable Class HashMembershipCondition
Implements IMembershipCondition
Public NotInheritable Class HashMembershipCondition
Implements IDeserializationCallback, ISerializable
继承
HashMembershipCondition
属性
实现

构造函数

HashMembershipCondition(HashAlgorithm, Byte[])

用确定成员身份的哈希算法和哈希值初始化 HashMembershipCondition 类的新实例。

属性

HashAlgorithm

获取或设置用于成员条件的哈希算法。

HashValue

获取或设置要针对其测试成员条件的哈希值。

方法

Check(Evidence)

确定指定的证据是否能满足成员条件。

Copy()

创建成员条件的等效副本。

Equals(Object)

确定指定对象中的 HashValueHashAlgorithm 是否等效于包含在当前 HashValue 中的 HashAlgorithmHashMembershipCondition

FromXml(SecurityElement, PolicyLevel)

通过 XML 编码重新构造具有指定状态的安全对象。

FromXml(SecurityElement)

通过 XML 编码重新构造具有指定状态的安全对象。

GetHashCode()

获取当前成员条件的哈希代码。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

创建并返回成员条件的字符串表示形式。

ToXml()

创建安全对象及其当前状态的 XML 编码。

ToXml(PolicyLevel)

使用指定的 PolicyLevel 创建安全对象及其当前状态的 XML 编码。

显式接口实现

IDeserializationCallback.OnDeserialization(Object)

在整个对象图形已经反序列化时运行。

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用将目标对象序列化所需的数据填充 SerializationInfo

适用于