Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Reflection.​AssemblyName
Assembly: System.Runtime
Inheritance: object → AssemblyName
Describes an assembly's unique identity in full.
Properties
public
string
CodeBase
Gets or sets the location of the assembly as a URL.
public
AssemblyContentType
ContentType
Gets or sets a value that indicates what type of content the assembly contains.
CultureInfo
Gets or sets the culture supported by the assembly.
public
string
CultureName
Gets or sets the name of the culture associated with the assembly.
public
string
EscapedCodeBase
Gets the URI, including escape characters, that represents the codebase.
public
AssemblyNameFlags
Flags
Gets or sets the attributes of the assembly.
public
string
FullName
Gets the full name of the assembly, also known as the display name.
HashAlgorithm
Gets or sets the hash algorithm used by the assembly manifest.
public
StrongNameKeyPair
KeyPair
Gets or sets the public and private cryptographic key pair that is used to create a strong name signature for the assembly.
public
string
Name
Gets or sets the simple name of the assembly. This is usually, but not necessarily, the file name of the manifest file of the assembly, minus its extension.
public
ProcessorArchitecture
ProcessorArchitecture
Gets or sets a value that identifies the processor and bits-per-word of the platform targeted by an executable.
public
Version
Version
Gets or sets the major, minor, build, and revision numbers of the assembly.
VersionCompatibility
Gets or sets the information related to the assembly's compatibility with other assemblies.
Methods
public
object
Clone​() Returns An object that is a copy of this <see cref="T:System.Reflection.AssemblyName" /> object.
Makes a copy of this <see cref="T:System.Reflection.AssemblyName" /> object.
public
void
GetObjectData​(Runtime.Serialization.SerializationInfo info,
Runtime.Serialization.StreamingContext context)
info
The object to be populated with serialization information.
context
The destination context of the serialization.
Gets serialization information with all the data needed to recreate an instance of this <see langword="AssemblyName" /> .
public
byte[]
GetPublicKey​() Returns A byte array that contains the public key of the assembly.
Gets the public key of the assembly.
public
byte[]
GetPublicKeyToken​() Returns A byte array that contains the public key token.
Gets the public key token, which is the last 8 bytes of the SHA-1 hash of the public key under which the application or assembly is signed.
public
void
OnDeserialization​(object sender)
sender
The source of the deserialization event.
Implements the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface and is called back by the deserialization event when deserialization is complete.
public
void
SetPublicKey​(byte[] publicKey)
publicKey
A byte array containing the public key of the assembly.
Sets the public key identifying the assembly.
public
void
SetPublicKeyToken​(byte[] publicKeyToken)
publicKeyToken
A byte array containing the public key token of the assembly.
Sets the public key token, which is the last 8 bytes of the SHA-1 hash of the public key under which the application or assembly is signed.
public
string
ToString​() Returns The full name of the assembly, or the class name if the full name cannot be determined.
Returns the full name of the assembly, also known as the display name.
public
bool
Equals​(object obj)
Inherited from object
obj
The object to compare with the current object.
Returns <see langword="true" /> if the specified object is equal to the current object; otherwise, <see langword="false" /> .
Determines whether the specified object is equal to the current object.
protected
void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public
int
GetHashCode​()
Inherited from object
Returns A hash code for the current object.
Serves as the default hash function.
public
Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected
object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .