StrongName StrongName StrongName StrongName Class


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

public ref class StrongName sealed : System::Security::Policy::EvidenceBase, System::Security::Policy::IIdentityPermissionFactory
public sealed class StrongName : System.Security.Policy.EvidenceBase, System.Security.Policy.IIdentityPermissionFactory
type StrongName = class
    inherit EvidenceBase
    interface IIdentityPermissionFactory
Public NotInheritable Class StrongName
Inherits EvidenceBase
Implements IIdentityPermissionFactory


The 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 AssemblyKeyFileAttribute, AssemblyKeyNameAttribute or AssemblyDelaySignAttribute in conjunction with the SN utility (see Sn.exe (Strong Name Tool)).

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


StrongName(StrongNamePublicKeyBlob, String, Version) StrongName(StrongNamePublicKeyBlob, String, Version) StrongName(StrongNamePublicKeyBlob, String, Version) StrongName(StrongNamePublicKeyBlob, String, Version)

Initializes a new instance of the StrongName class with the strong name public key blob, name, and version.


Name Name Name Name

Gets the simple name of the current StrongName.

PublicKey PublicKey PublicKey PublicKey

Gets the StrongNamePublicKeyBlob of the current StrongName.

Version Version Version Version

Gets the Version of the current StrongName.


Clone() Clone() Clone() Clone()

Creates a new object that is a copy of the current instance.

Copy() Copy() Copy() Copy()

Creates an equivalent copy of the current StrongName.

CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence) CreateIdentityPermission(Evidence)

Creates a StrongNameIdentityPermission that corresponds to the current StrongName.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified strong name is equal to the current strong name.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Gets the hash code of the current StrongName.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Creates a string representation of the current StrongName.

Applies to