System.Security.Permissions.StrongNamePublicKeyBlob Class

Assembly: Mscorlib.dll
Namespace: System.Security.Permissions
Summary
Represents the public key information (called a blob) for a strong name. This class cannot be inherited.
C# Syntax:
[Serializable]
public sealed class StrongNamePublicKeyBlob
Remarks
This class facilitates the use of strong names for identification purposes.

For a complete description of strong names, see StrongName.

See also:
System.Security.Permissions Namespace | StrongNameIdentityPermission | StrongNameIdentityPermissionAttribute | StrongName | StrongNameMembershipCondition

System.Security.Permissions.StrongNamePublicKeyBlob Member List:

Public Constructors
ctor #1 Initializes a new instance of the StrongNamePublicKeyBlob class with raw bytes of the public key blob.
Public Methods
Equals Overridden:
Gets or sets a value indicating whether the current public key blob is equal to the specified public key blob.
GetHashCode Overridden:
Returns a hash code based on the public key.
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 and returns a string representation of the public key blob.
Protected Methods
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:


System.Security.Permissions.StrongNamePublicKeyBlob Member Details

ctor #1
Summary
Initializes a new instance of the StrongNamePublicKeyBlob class with raw bytes of the public key blob.
C# Syntax:
public StrongNamePublicKeyBlob(
   byte[] publicKey
);
Parameters:

publicKey

The array of bytes representing the raw public key data.

Exceptions
Exception Type Condition
ArgumentNullException The publicKey parameter is null.

Return to top


Overridden Method: Equals(
   object obj
)
Summary
Gets or sets a value indicating whether the current public key blob is equal to the specified public key blob.
C# Syntax:
public override bool Equals(
   object obj
);
Parameters:

obj

An object containing a public key blob.

Return Value:
true if the public key blob of the current object is equal to the public key blob of the obj parameter; otherwise, false.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~StrongNamePublicKeyBlob();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Returns a hash code based on the public key.
C# Syntax:
public override int GetHashCode();
Return Value:
The hash code based on the public key.
Remarks
Hash functions map binary strings of an arbitrary length to small binary strings of a fixed length, known as hash values.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: ToString()
Summary
Creates and returns a string representation of the public key blob.
C# Syntax:
public override string ToString();
Return Value:
A hexadecimal version of the public key blob.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.