Partager via


AssemblyIdentity Class

Definition

Describes the identity of an assembly.

public ref class AssemblyIdentity sealed
[System.Runtime.InteropServices.ComVisible(false)]
public sealed class AssemblyIdentity
[<System.Runtime.InteropServices.ComVisible(false)>]
type AssemblyIdentity = class
Public NotInheritable Class AssemblyIdentity
Inheritance
AssemblyIdentity
Attributes

Remarks

This is a serialization format, do not remove or change the private fields.

Constructors

AssemblyIdentity()

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(AssemblyIdentity)

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(String, String, String, String, String, String)

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(String, String, String, String, String)

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(String, String, String, String)

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(String, String)

Initializes a new instance of the AssemblyIdentity class.

AssemblyIdentity(String)

Initializes a new instance of the AssemblyIdentity class.

Properties

Culture

Specifies the culture of the assembly. A blank string indicates the invariant culture.

IsFrameworkAssembly

Returns true if this assembly is part of the .NET Framework.

IsNeutralPlatform

Specifies whether the assembly identity represents a neutral platform assembly.

IsStrongName

Specifies whether the assembly identity is a strong name.

Name

Specifies the simple name of the assembly.

ProcessorArchitecture

Specifies the processor architecture of the assembly. Valid values are "msil", "x86", "ia64", "amd64".

PublicKeyToken

Specifies the public key token of the assembly, which is the last 8 bytes of the SHA-1 hash of the public key under which the assembly is signed.

Type

Specifies the type attribute of the assembly. Valid values are "win32" or a blank string.

Version

Specifies the version of the assembly.

XmlCulture

Gets or sets a property that is used to serialize the Culture property to an XML file.

XmlName

Gets or sets a property that is used to serialize the Name property to an XML file.

XmlProcessorArchitecture

Gets or sets a property that is used to serialize the ProcessorArchitecture property to an XML file.

XmlPublicKeyToken

Gets or sets a property that is used to serialize the PublicKeyToken property to an XML file.

XmlType

Gets or sets a property that is used to serialize the Type property to an XML file.

XmlVersion

Gets or sets a property that is used to serialize the Version property to an XML file.

Methods

FromAssemblyName(String)

Parses string to obtain an assembly identity. Returns null if identity could not be obtained.

FromFile(String)

Obtains identity of the specified assembly. File can be a PE with an embedded xml manifest, a stand-alone xml manifest file, or a .NET assembly. Returns null if identity could not be obtained.

FromManagedAssembly(String)

Obtains identity of the specified .NET assembly. File must be a .NET assembly. Returns null if identity could not be obtained.

FromManifest(String)

Obtains identity of the specified manifest file. File must be a stand-alone xml manifest file. Returns null if identity could not be obtained.

FromNativeAssembly(String)

Obtains identity of the specified native assembly. File must be either a PE with an embedded xml manifest, or a stand-alone xml manifest file. Returns null if identity could not be obtained.

GetFullName(AssemblyIdentity+FullNameFlags)

Returns the full name of the assembly.

IsInFramework(String, String)

Returns true if this assembly is part of the given framework. identifier is “.NETFramework” or “Silverlight”, etc. and the version string looks like this: “4.5” or “v4.5”, or “v4.0.30319" If frameworkVersion is null or empty, return true if this assembly is present in any of the given framework versions If both arguments are null or empty strings, return true if this assembly is present in any of the frameworks

ToString()

Returns the full ClickOnce assembly identity.

Applies to