Class ApplicationInfoBase<TApplication>
Exposes the assembly information of a Windows application.
Implements
Inherited Members
Namespace: TheXDS.MCART.Component
Assembly: MCART.Windows.dll
Syntax
public abstract class ApplicationInfoBase<TApplication> : IExposeExtendedGuiInfo<Icon?>, IExposeGuiInfo<Icon?>, IExposeExtendedInfo, IExposeInfo, INameable, IDescriptible, IExposeAssembly where TApplication : notnull
Type Parameters
| Name | Description |
|---|---|
| TApplication | Windows application type for which to expose information. |
Remarks
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
Constructors
| Edit this page View SourceApplicationInfoBase(Assembly, bool)
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
Declaration
[RequiresAssemblyFiles]
[RequiresUnreferencedCode("The method dynamically loads resources from the assembly, so it is not compatible with trimming.")]
protected ApplicationInfoBase(Assembly assembly, bool inferIcon)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | Assembly from which information will be displayed. |
| bool | inferIcon | true to attempt to determine the assembly's icon, false to not display an icon. |
ApplicationInfoBase(Assembly, Icon?)
Exposes the assembly information of a Windows application.
Declaration
[RequiresAssemblyFiles]
[RequiresUnreferencedCode("The method dynamically loads resources from the assembly, so it is not compatible with trimming.")]
protected ApplicationInfoBase(Assembly assembly, Icon? icon)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | assembly | Assembly from which information will be displayed. |
| Icon | icon | Icon to display from the assembly. |
Remarks
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
ApplicationInfoBase(TApplication)
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
Declaration
[RequiresAssemblyFiles]
[RequiresUnreferencedCode("The method dynamically loads resources from the assembly, so it is not compatible with trimming.")]
protected ApplicationInfoBase(TApplication application)
Parameters
| Type | Name | Description |
|---|---|---|
| TApplication | application | Application whose information will be displayed. |
ApplicationInfoBase(TApplication, bool)
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
Declaration
[RequiresAssemblyFiles]
[RequiresUnreferencedCode("The method dynamically loads resources from the assembly, so it is not compatible with trimming.")]
protected ApplicationInfoBase(TApplication application, bool inferIcon)
Parameters
| Type | Name | Description |
|---|---|---|
| TApplication | application | Application whose information will be displayed. |
| bool | inferIcon | true to attempt to determine the application's icon, false to not display an icon. |
ApplicationInfoBase(TApplication, Icon?)
Initializes a new instance of the ApplicationInfoBase<TApplication> class.
Declaration
[RequiresAssemblyFiles]
[RequiresUnreferencedCode("The method dynamically loads resources from the assembly, so it is not compatible with trimming.")]
protected ApplicationInfoBase(TApplication application, Icon? icon)
Parameters
| Type | Name | Description |
|---|---|---|
| TApplication | application | Application whose information will be displayed. |
| Icon | icon | Icon to display for the application. |
Properties
| Edit this page View SourceAssembly
Gets a reference to the assembly from which information is exposed.
Declaration
public Assembly Assembly { get; }
Property Value
| Type | Description |
|---|---|
| Assembly |
Authors
Gets the author(s) of the IExposeInfo.
Declaration
public IEnumerable<string>? Authors { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Beta
Gets a value that indicates whether this IExposeExtendedInfo is considered a beta version.
Declaration
public bool Beta { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ClsCompliant
Gets a value that indicates whether this IExposeInfo is CLS compliant.
Declaration
public bool ClsCompliant { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Copyright
Gets the copyright of the IExposeInfo.
Declaration
public string? Copyright { get; }
Property Value
| Type | Description |
|---|---|
| string |
Description
Gets the description of the element.
Declaration
public string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Has3rdPartyLicense
Gets a value that indicates whether this IExposeInfo contains third‑party license information.
Declaration
public bool Has3rdPartyLicense { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasLicense
Gets a value that indicates whether this IExposeInfo contains license information.
Declaration
public bool HasLicense { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Icon
Gets an optional icon that describes the element.
Declaration
public virtual Icon? Icon { get; }
Property Value
| Type | Description |
|---|---|
| Icon |
InformationalVersion
Gets the informational version of this IExposeInfo.
Declaration
public string? InformationalVersion { get; }
Property Value
| Type | Description |
|---|---|
| string |
License
Gets the license of the IExposeInfo.
Declaration
public License? License { get; }
Property Value
| Type | Description |
|---|---|
| License |
Name
Gets the name of the element.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
ThirdPartyLicenses
Gets a collection of third‑party license contents for the object.
Declaration
public IEnumerable<License>? ThirdPartyLicenses { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<License> |
Unmanaged
Gets a value that indicates whether this IExposeExtendedInfo may contain unsafe code.
Declaration
public bool Unmanaged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Version
Gets the version of the IExposeInfo.
Declaration
public Version? Version { get; }
Property Value
| Type | Description |
|---|---|
| Version |
Methods
| Edit this page View SourceGetIconFromOS(Assembly)
Retrieves the icon provided by Windows for the specified assembly.
Declaration
[RequiresAssemblyFiles]
protected static Icon? GetIconFromOS(Assembly asm)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | asm | Assembly for which to retrieve the icon. |
Returns
| Type | Description |
|---|---|
| Icon | An instance of Icon containing the icon provided by the operating system for the assembly, or null if the OS did not provide a valid icon. |