<PackageReference Include="System.Security.Permissions" Version="9.0.5" />

StrongNameMembershipCondition

Determines whether an assembly belongs to a code group by testing its strong name. This class cannot be inherited.
public string Name { get; set; }

Gets or sets the simple name of the StrongName for which the membership condition tests.

public StrongNamePublicKeyBlob PublicKey { get; set; }

Gets or sets the StrongNamePublicKeyBlob of the StrongName for which the membership condition tests.

public Version Version { get; set; }

Gets or sets the Version of the StrongName for which the membership condition tests.

Initializes a new instance of the StrongNameMembershipCondition class with the strong name public key blob, name, and version number that determine membership.

public bool Check(Evidence evidence)

Determines whether the specified evidence satisfies the membership condition.

Creates an equivalent copy of the current StrongNameMembershipCondition.

public void FromXml(SecurityElement e)

Reconstructs a security object with a specified state from an XML encoding.

public void FromXml(SecurityElement e, PolicyLevel level)

Reconstructs a security object with a specified state from an XML encoding.

Creates an XML encoding of the security object and its current state.

Creates an XML encoding of the security object and its current state with the specified PolicyLevel.