[Serializable] |
Strong names are typically assigned to assemblies using either AssemblyKeyFileAttribute, System.Reflection.AssemblyKeyNameAttribute (not supported on the shared source CLI) or AssemblyDelaySignAttribute in conjunction with the SN utility (see ).
StrongNameIdentityPermission uses this class to confirm that calling code is in a particular strong-named code assembly.
ctor #1 | Initializes a new instance of the StrongName class with the strong name public key blob, name, and version. |
Name | Read-only Gets the simple name of the current StrongName. |
PublicKey | Read-only Gets the StrongNamePublicKeyBlob of the current StrongName. |
Version | Read-only Gets the Version of the current StrongName. |
Copy | Creates an equivalent copy of the current StrongName. |
CreateIdentityPermission | Creates a StrongNameIdentityPermission that corresponds to the current StrongName. |
Equals | Overridden: Determines whether the specified strong name is equal to the current strong name. |
GetHashCode | Overridden: Gets the hash code of the current StrongName. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
ToString | Overridden: Creates a string representation of the current StrongName. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public StrongName(StrongName( |
blob
name
version
Exception Type | Condition |
---|---|
ArgumentNullException | The blob parameter is null. -or- The name parameter is null. -or- The version parameter is null. |
public string Name {get;}
|
public StrongNamePublicKeyBlob PublicKey {get;}
|
Blobs differ from certificates in that the blob only has information about the public key; the certificate also includes information that associates the name of the holder with the key as well as information to verify the certificate.
public Version Version {get;}
|
public object Copy(); |
public IPermission CreateIdentityPermission( |
evidence
o
~StrongName(); |
public override int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public override string ToString(); |