StrongNameKeyPair Constructors

Definition

Initializes a new instance of the StrongNameKeyPair class.

Overloads

StrongNameKeyPair(Byte[])

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

StrongNameKeyPair(FileStream)

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

StrongNameKeyPair(String)

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

StrongNameKeyPair(SerializationInfo, StreamingContext)

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

StrongNameKeyPair(Byte[])

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

public:
 StrongNameKeyPair(cli::array <System::Byte> ^ keyPairArray);
public StrongNameKeyPair (byte[] keyPairArray);
new System.Reflection.StrongNameKeyPair : byte[] -> System.Reflection.StrongNameKeyPair
Public Sub New (keyPairArray As Byte())

Parameters

keyPairArray
Byte[]

An array of type byte containing the key pair.

Exceptions

keyPairArray is null.

The caller does not have the required permission.

See also

StrongNameKeyPair(FileStream)

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

public:
 StrongNameKeyPair(System::IO::FileStream ^ keyPairFile);
public StrongNameKeyPair (System.IO.FileStream keyPairFile);
new System.Reflection.StrongNameKeyPair : System.IO.FileStream -> System.Reflection.StrongNameKeyPair
Public Sub New (keyPairFile As FileStream)

Parameters

keyPairFile
FileStream

A FileStream containing the key pair.

Exceptions

keyPairFile is null.

The caller does not have the required permission.

See also

StrongNameKeyPair(String)

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

public:
 StrongNameKeyPair(System::String ^ keyPairContainer);
public StrongNameKeyPair (string keyPairContainer);
new System.Reflection.StrongNameKeyPair : string -> System.Reflection.StrongNameKeyPair
Public Sub New (keyPairContainer As String)

Parameters

keyPairContainer
String

A string containing the key pair.

Exceptions

keyPairContainer is null.

The caller does not have the required permission.

Remarks

The key pair is in a named key container.

See also

StrongNameKeyPair(SerializationInfo, StreamingContext)

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

protected:
 StrongNameKeyPair(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected StrongNameKeyPair (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Reflection.StrongNameKeyPair : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Reflection.StrongNameKeyPair
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

A SerializationInfo object that holds the serialized object data.

context
StreamingContext

A StreamingContext object that contains contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.

See also

Applies to