StrongName Class

StrongName Class

 

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

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

System.Object
  System.Security.Policy.EvidenceBase
    System.Security.Policy.StrongName

[SerializableAttribute]
[ComVisibleAttribute(true)]
public sealed class StrongName : EvidenceBase, IIdentityPermissionFactory

NameDescription
System_CAPS_pubmethodStrongName(StrongNamePublicKeyBlob, String, Version)

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

NameDescription
System_CAPS_pubpropertyName

Gets the simple name of the current StrongName.

System_CAPS_pubpropertyPublicKey

Gets the StrongNamePublicKeyBlob of the current StrongName.

System_CAPS_pubpropertyVersion

Gets the Version of the current StrongName.

NameDescription
System_CAPS_pubmethodClone()

Creates a new object that is a copy of the current instance.(Overrides EvidenceBase.Clone().)

System_CAPS_pubmethodCopy()

Creates an equivalent copy of the current StrongName.

System_CAPS_pubmethodCreateIdentityPermission(Evidence)

Creates a StrongNameIdentityPermission that corresponds to the current StrongName.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified strong name is equal to the current strong name.(Overrides Object.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

Gets the hash code of the current StrongName.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Creates a string representation of the current StrongName.(Overrides Object.ToString().)

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.

.NET Framework
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.

Return to top
Show:
© 2016 Microsoft