StrongNameKeyPair Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Encapsulates access to a public or private key pair used to sign strong name assemblies.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

System.Object
  System.Reflection.StrongNameKeyPair

[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type StrongNameKeyPair = 
    class
        interface IDeserializationCallback
        interface ISerializable
    end

NameDescription
System_CAPS_pubmethodStrongNameKeyPair(Byte[])

Initializes a new instance of the StrongNameKeyPair class, building the key pair from a byte array.

System_CAPS_pubmethodStrongNameKeyPair(FileStream)

Initializes a new instance of the StrongNameKeyPair class, building the key pair from a FileStream.

System_CAPS_protmethodStrongNameKeyPair(SerializationInfo, StreamingContext)

Initializes a new instance of the StrongNameKeyPair class, building the key pair from serialized data.

System_CAPS_pubmethodStrongNameKeyPair(String)

Initializes a new instance of the StrongNameKeyPair class, building the key pair from a String.

NameDescription
System_CAPS_pubpropertyPublicKey

Gets the public part of the public key or public key token of the key pair.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

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

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDeserializationCallback.OnDeserialization(Object)

Runs when the entire object graph has been deserialized.

System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo object with all the data required to reinstantiate the current StrongNameKeyPair object.

The following code example shows how to open a Company.keys file (produced by running the Sn.exe (Strong Name Tool) with the –k switch), read the public key from the file, and display the key in the console window.

No code example is currently available or this language may not be supported.

.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: