AssemblyIdentity Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an identity of an assembly as defined by CLI metadata specification.
public ref class AssemblyIdentity sealed : IEquatable<Microsoft::CodeAnalysis::AssemblyIdentity ^>
[System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")]
public sealed class AssemblyIdentity : IEquatable<Microsoft.CodeAnalysis.AssemblyIdentity>
[<System.Diagnostics.DebuggerDisplay("{GetDebuggerDisplay(), nq}")>]
type AssemblyIdentity = class
interface IEquatable<AssemblyIdentity>
Public NotInheritable Class AssemblyIdentity
Implements IEquatable(Of AssemblyIdentity)
- Inheritance
-
AssemblyIdentity
- Attributes
- Implements
Remarks
May represent assembly definition or assembly reference identity.
Constructors
AssemblyIdentity(String, Version, String, ImmutableArray<Byte>, Boolean, Boolean, AssemblyContentType) |
Constructs an AssemblyIdentity from its constituent parts. |
Properties
ContentType |
Specifies assembly binding model for the assembly definition or reference; that is how assembly references are matched to assembly definitions. |
CultureName |
The culture name of the assembly, or empty if the culture is neutral. |
Flags |
The AssemblyNameFlags. |
HasPublicKey |
True if the assembly identity includes full public key. |
IsRetargetable |
Gets the value which specifies if the assembly is retargetable. |
IsStrongName |
True if the assembly identity has a strong name, ie. either a full public key or a token. |
Name |
The simple name of the assembly. |
PublicKey |
Full public key or empty. |
PublicKeyToken |
Low 8 bytes of SHA1 hash of the public key, or empty. |
Version |
The version of the assembly. |
Methods
Equals(AssemblyIdentity) |
Determines whether the specified instance is equal to the current instance. |
Equals(Object) |
Determines whether the specified instance is equal to the current instance. |
FromAssemblyDefinition(Assembly) |
Retrieves assembly definition identity from given runtime assembly. |
GetDisplayName(Boolean) |
Returns the display name of the assembly identity. |
GetHashCode() |
Returns the hash code for the current instance. |
ToString() |
Returns the display name of the current instance. |
TryParseDisplayName(String, AssemblyIdentity) | |
TryParseDisplayName(String, AssemblyIdentity, AssemblyIdentityParts) |
Parses display name filling defaults for any basic properties that are missing. |
Operators
Equality(AssemblyIdentity, AssemblyIdentity) |
Determines whether two AssemblyIdentity instances are equal. |
Inequality(AssemblyIdentity, AssemblyIdentity) |
Determines whether two AssemblyIdentity instances are not equal. |