Table of Contents

Class PluginFeatureInfo

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents basic info about a plugin feature and contains a reference to the instance of said feature

public class PluginFeatureInfo : IPrerequisitesSubject
Inheritance
PluginFeatureInfo
Implements

Properties

AlwaysEnabled

Marks the feature to always be enabled as long as the plugin is enabled and cannot be disabled.

Note: always true if this is the plugin's only feature

public bool AlwaysEnabled { get; }

Property Value

bool

Description

A short description of the feature

public string? Description { get; }

Property Value

string

EnabledInStorage

Gets a boolean indicating whether the feature is enabled in persistent storage

public bool EnabledInStorage { get; }

Property Value

bool

FeatureType

Gets the type of the feature

public Type FeatureType { get; }

Property Value

Type

Instance

Gets the feature this info is associated with

Note: null if the associated Plugin is disabled

public PluginFeature? Instance { get; }

Property Value

PluginFeature

LoadException

Gets the exception thrown while loading

public Exception? LoadException { get; }

Property Value

Exception

Name

The name of the feature

public string Name { get; }

Property Value

string

PlatformPrerequisites

Gets a list of prerequisites of the current platform for this plugin

public IEnumerable<PluginPrerequisite> PlatformPrerequisites { get; }

Property Value

IEnumerable<PluginPrerequisite>

Plugin

Gets the plugin this feature info is associated with

public Plugin Plugin { get; }

Property Value

Plugin

Prerequisites

Gets a list of prerequisites for this plugin

public List<PluginPrerequisite> Prerequisites { get; }

Property Value

List<PluginPrerequisite>

Methods

ArePrerequisitesMet()

Determines whether the prerequisites of this plugin are met

public bool ArePrerequisitesMet()

Returns

bool

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.