ComponentInfo Class

Implementation of IComponentInfo which can be retrieved from assembly metadata or filled with arbitrary values.

Definition

Namespace: SMath.Extensibility
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.74.9654.0
C#
public class ComponentInfo : IComponentInfo
Inheritance
Object    ComponentInfo
Implements
IComponentInfo

Constructors

ComponentInfo(Assembly) Plug-in Info Constructor.
ComponentInfo(Guid, Version) Constructs an instance of ComponentInfo with the specified GUID and version.

Properties

Author Author of the component.
  • For high level application component the value is predefined.
  • For assembly the value is taken from AssemblyCompanyAttribute.
Description Description of the component.
Errors Collection of error messages which are associated with the component.
Obsolete.
FileName File name of the component.
  • For high level application component the value is an empty string.
  • For assembly the value is taken from Location.
PublicGuid GUID of the component.
Title International (English) title of the component.
  • For high level application component the value is predefined.
  • For assembly the value is taken from AssemblyTitleAttribute.
Version Version of the component.

Methods

AddError Adds an error message to Errors.
Obsolete.
AddException Adds error message(s) for the specified exception to Errors.
Obsolete.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetDescriptionOrErrors If the Errors collection is empty then returns Description, otherwise returns the error messages joined by errorSeparator.
Obsolete.
GetErrors Joins the messages in Errors collection by the specified separator.
Obsolete.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsSupportedVersion

Checks Version against the specified lower bound and determines whether the component described by this instance is supported.

Typical use cases are:

Plug-in this describes a plug-in and lowerBound is its minimal version which is recorded in the SMath Studio document.
Document this describes SMath Studio Core and lowerBound is its minimal version which is recorded in the SMath Studio document.

MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Overrides ObjectToString)

See Also