mscorlib(4.0.0.0) API with additions
|
Describes an assembly's unique identity in full. More...
Public Member Functions | |
AssemblyName () | |
Initializes a new instance of the T:System.Reflection.AssemblyName class. More... | |
object | Clone () |
Makes a copy of this T:System.Reflection.AssemblyName object. More... | |
byte [] | GetPublicKey () |
Gets the public key of the assembly. More... | |
void | SetPublicKey (byte[] publicKey) |
Sets the public key identifying the assembly. More... | |
byte [] | GetPublicKeyToken () |
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. More... | |
void | SetPublicKeyToken (byte[] publicKeyToken) |
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. More... | |
override string | ToString () |
Returns the full name of the assembly, also known as the display name. More... | |
void | GetObjectData (SerializationInfo info, StreamingContext context) |
Gets serialization information with all the data needed to recreate an instance of this AssemblyName . More... | |
void | OnDeserialization (object sender) |
Implements the T:System.Runtime.Serialization.ISerializable interface and is called back by the deserialization event when deserialization is complete. More... | |
AssemblyName (string assemblyName) | |
Initializes a new instance of the T:System.Reflection.AssemblyName class with the specified display name. More... | |
Static Public Member Functions | |
static AssemblyName | GetAssemblyName (string assemblyFile) |
Gets the T:System.Reflection.AssemblyName for a given file. More... | |
static bool | ReferenceMatchesDefinition (AssemblyName reference, AssemblyName definition) |
Returns a value indicating whether two assembly names are the same. The comparison is based on the simple assembly names. More... | |
Properties | |
string | Name [get, set] |
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. More... | |
Version | Version [get, set] |
Gets or sets the major, minor, build, and revision numbers of the assembly. More... | |
CultureInfo | CultureInfo [get, set] |
Gets or sets the culture supported by the assembly. More... | |
string? | CultureName [get, set] |
Gets or sets the name of the culture associated with the assembly. More... | |
string | CodeBase [get, set] |
Gets or sets the location of the assembly as a URL. More... | |
string | EscapedCodeBase [get] |
Gets the URI, including escape characters, that represents the codebase. More... | |
ProcessorArchitecture | ProcessorArchitecture [get, set] |
Gets or sets a value that identifies the processor and bits-per-word of the platform targeted by an executable. More... | |
AssemblyContentType | ContentType [get, set] |
Gets or sets a value that indicates what type of content the assembly contains. More... | |
AssemblyNameFlags | Flags [get, set] |
Gets or sets the attributes of the assembly. More... | |
AssemblyHashAlgorithm | HashAlgorithm [get, set] |
Gets or sets the hash algorithm used by the assembly manifest. More... | |
AssemblyVersionCompatibility | VersionCompatibility [get, set] |
Gets or sets the information related to the assembly's compatibility with other assemblies. More... | |
StrongNameKeyPair | KeyPair [get, set] |
Gets or sets the public and private cryptographic key pair that is used to create a strong name signature for the assembly. More... | |
string | FullName [get] |
Gets the full name of the assembly, also known as the display name. More... | |
Describes an assembly's unique identity in full.
Definition at line 19 of file AssemblyName.cs.
System.Reflection.AssemblyName.AssemblyName | ( | ) |
Initializes a new instance of the T:System.Reflection.AssemblyName class.
Definition at line 284 of file AssemblyName.cs.
System.Reflection.AssemblyName.AssemblyName | ( | string | assemblyName | ) |
Initializes a new instance of the T:System.Reflection.AssemblyName class with the specified display name.
assemblyName | The display name of the assembly, as returned by the P:System.Reflection.AssemblyName.FullName property. |
T:System.ArgumentNullException | assemblyName is null . |
T:System.ArgumentException | assemblyName is a zero length string. |
T:System.IO.FileLoadException | In the .NET for Windows Store apps or the Portable Class Library, catch the base class exception, T:System.IO.IOException, instead.The referenced assembly could not be found, or could not be loaded. |
Definition at line 467 of file AssemblyName.cs.
object System.Reflection.AssemblyName.Clone | ( | ) |
Makes a copy of this T:System.Reflection.AssemblyName object.
Implements System.ICloneable.
Definition at line 293 of file AssemblyName.cs.
|
static |
Gets the T:System.Reflection.AssemblyName for a given file.
assemblyFile | The path for the assembly whose T:System.Reflection.AssemblyName is to be returned. |
T:System.ArgumentNullException | assemblyFile is null . |
T:System.ArgumentException | assemblyFile is invalid, such as an assembly with an invalid culture. |
T:System.IO.FileNotFoundException | assemblyFile is not found. |
T:System.Security.SecurityException | The caller does not have path discovery permission. |
T:System.BadImageFormatException | assemblyFile is not a valid assembly. |
T:System.IO.FileLoadException | An assembly or module was loaded twice with two different sets of evidence. |
Definition at line 316 of file AssemblyName.cs.
void System.Reflection.AssemblyName.GetObjectData | ( | SerializationInfo | info, |
StreamingContext | context | ||
) |
Gets serialization information with all the data needed to recreate an instance of this AssemblyName
.
info | The object to be populated with serialization information. |
context | The destination context of the serialization. |
T:System.ArgumentNullException | info is null . |
Implements System.Runtime.Serialization.ISerializable.
Definition at line 398 of file AssemblyName.cs.
byte [] System.Reflection.AssemblyName.GetPublicKey | ( | ) |
Gets the public key of the assembly.
T:System.Security.SecurityException | A public key was provided (for example, by using the M:System.Reflection.AssemblyName.SetPublicKey(System.Byte[]) method), but no public key token was provided. |
Definition at line 337 of file AssemblyName.cs.
byte [] System.Reflection.AssemblyName.GetPublicKeyToken | ( | ) |
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.
Definition at line 362 of file AssemblyName.cs.
void System.Reflection.AssemblyName.OnDeserialization | ( | object | sender | ) |
Implements the T:System.Runtime.Serialization.ISerializable interface and is called back by the deserialization event when deserialization is complete.
sender | The source of the deserialization event. |
Implements System.Runtime.Serialization.IDeserializationCallback.
Definition at line 420 of file AssemblyName.cs.
|
static |
Returns a value indicating whether two assembly names are the same. The comparison is based on the simple assembly names.
reference | The reference assembly name. |
definition | The assembly name that is compared to the reference assembly. |
true
if the simple assembly names are the same; otherwise, false
.Definition at line 487 of file AssemblyName.cs.
void System.Reflection.AssemblyName.SetPublicKey | ( | byte [] | publicKey | ) |
Sets the public key identifying the assembly.
publicKey | A byte array containing the public key of the assembly. |
Definition at line 345 of file AssemblyName.cs.
void System.Reflection.AssemblyName.SetPublicKeyToken | ( | byte [] | publicKeyToken | ) |
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.
publicKeyToken | A byte array containing the public key token of the assembly. |
Definition at line 374 of file AssemblyName.cs.
override string System.Reflection.AssemblyName.ToString | ( | ) |
Returns the full name of the assembly, also known as the display name.
Definition at line 382 of file AssemblyName.cs.
|
getset |
Gets or sets the location of the assembly as a URL.
Definition at line 122 of file AssemblyName.cs.
|
getset |
Gets or sets a value that indicates what type of content the assembly contains.
Definition at line 181 of file AssemblyName.cs.
|
getset |
Gets or sets the culture supported by the assembly.
Definition at line 85 of file AssemblyName.cs.
|
getset |
Gets or sets the name of the culture associated with the assembly.
Definition at line 102 of file AssemblyName.cs.
|
get |
Gets the URI, including escape characters, that represents the codebase.
Definition at line 136 of file AssemblyName.cs.
|
getset |
Gets or sets the attributes of the assembly.
Definition at line 208 of file AssemblyName.cs.
|
get |
Gets the full name of the assembly, also known as the display name.
Definition at line 268 of file AssemblyName.cs.
|
getset |
Gets or sets the hash algorithm used by the assembly manifest.
Definition at line 225 of file AssemblyName.cs.
|
getset |
Gets or sets the public and private cryptographic key pair that is used to create a strong name signature for the assembly.
Definition at line 253 of file AssemblyName.cs.
|
getset |
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.
Definition at line 51 of file AssemblyName.cs.
|
getset |
Gets or sets a value that identifies the processor and bits-per-word of the platform targeted by an executable.
Definition at line 152 of file AssemblyName.cs.
|
getset |
Gets or sets the major, minor, build, and revision numbers of the assembly.
Definition at line 68 of file AssemblyName.cs.
|
getset |
Gets or sets the information related to the assembly's compatibility with other assemblies.
Definition at line 239 of file AssemblyName.cs.