StrongNameMembershipCondition Class
Determines whether an assembly belongs to a code group by testing its strong name. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
| Name | Description | |
|---|---|---|
![]() | StrongNameMembershipCondition(StrongNamePublicKeyBlob^, String^, Version^) | Initializes a new instance of the StrongNameMembershipCondition class with the strong name public key blob, name, and version number that determine membership. |
| Name | Description | |
|---|---|---|
![]() | Name | Gets or sets the simple name of the StrongName for which the membership condition tests. |
![]() | PublicKey | Gets or sets the StrongNamePublicKeyBlob of the StrongName for which the membership condition tests. |
![]() | Version | Gets or sets the Version of the StrongName for which the membership condition tests. |
| Name | Description | |
|---|---|---|
![]() | Check(Evidence^) | Determines whether the specified evidence satisfies the membership condition. |
![]() | Copy() | Creates an equivalent copy of the current StrongNameMembershipCondition. |
![]() | Equals(Object^) | Determines whether the StrongName from the specified object is equivalent to the StrongName contained in the current StrongNameMembershipCondition.(Overrides Object::Equals(Object^).) |
![]() | FromXml(SecurityElement^) | Reconstructs a security object with a specified state from an XML encoding. |
![]() | FromXml(SecurityElement^, PolicyLevel^) | Reconstructs a security object with a specified state from an XML encoding. |
![]() | GetHashCode() | Returns the hash code for the current StrongNameMembershipCondition.(Overrides Object::GetHashCode().) |
![]() | GetType() | |
![]() | ToString() | Creates and returns a string representation of the current StrongNameMembershipCondition.(Overrides Object::ToString().) |
![]() | ToXml() | Creates an XML encoding of the security object and its current state. |
![]() | ToXml(PolicyLevel^) | Creates an XML encoding of the security object and its current state with the specified PolicyLevel. |
Strong names are well suited to specifying code assemblies to which you give a rich set of powerful permissions. Since strong names are cryptographically verified, attackers cannot impersonate rightful assemblies and use their permissions.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

