System.Security.Policy.StrongName Class

Provides the strong name of a code assembly as evidence for policy evaluation. This class cannot be inherited.

See Also: StrongName Members


public sealed class StrongName : EvidenceBase, IBuiltInEvidence, IIdentityPermissionFactory


The System.Security.Policy.StrongName class represents evidence of a unique, cryptographically strong name of a code assembly. The strong name consists of a public key, a given name, and a version. The public key corresponds to the publisher's private key which is kept secret, and with which the assembly must be signed in order for the strong name to be valid.

Strong names are typically assigned to assemblies using either System.Reflection.AssemblyKeyFileAttribute, System.Reflection.AssemblyKeyNameAttribute or System.Reflection.AssemblyDelaySignAttribute in conjunction with the SN utility (see [<topic://cpgrfstrongnameutilitysnexe>]).

System.Security.Permissions.StrongNameIdentityPermission uses this class to confirm that calling code is in a particular strong-named code assembly.


Namespace: System.Security.Policy
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0,,