PluginList

Overview

Represents a list of PluginDescriptor items. This class is used by the core Hydra classes to store plugin descriptors, LoadedModule stores descriptors of an individual module and ModuleManager stores descriptros from all loaded modules.

Use Case

You can use this class to get access to a plugin descriptors:

foreach (PluginDescriptor p in moduleManager.Plugins)
{
  Console.WriteLine(string.Format("Name: {0} Description: {1}", p.Name, p.Description));
}

Location


 

constructor

Creates a new instance of the class.

 

constructor

 

PluginList()

 

Sub New()

Add

 

method Add(plugin: PluginDescriptor)

 

void Add(PluginDescriptor plugin)

 

Sub Add(plugin As PluginDescriptor)

Parameters:

  • plugin:

GetEnumerator

Returns an enumerator that iterates through the collection.

 

method GetEnumerator: IEnumerator

 

IEnumerator GetEnumerator()

 

Function GetEnumerator() As IEnumerator

Items

 

property Items[name: String]: PluginDescriptor read;

 

PluginDescriptor Items[String name] { get; }

 

ReadOnly Property Items(name As String) As PluginDescriptor

Remove

 

method Remove(plugin: PluginDescriptor)

 

void Remove(PluginDescriptor plugin)

 

Sub Remove(plugin As PluginDescriptor)

Parameters:

  • plugin:

ToArray

Creates an array from the PluginList.

 

method ToArray: array of PluginDescriptor

 

PluginDescriptor[] ToArray()

 

Function ToArray() As PluginDescriptor()

 

Items

 

property Items[name: String]: PluginDescriptor read;

 

PluginDescriptor Items[String name] { get; }

 

ReadOnly Property Items(name As String) As PluginDescriptor

 

constructor

Creates a new instance of the class.

 

constructor

 

PluginList()

 

Sub New()

Add

 

method Add(plugin: PluginDescriptor)

 

void Add(PluginDescriptor plugin)

 

Sub Add(plugin As PluginDescriptor)

Parameters:

  • plugin:

GetEnumerator

Returns an enumerator that iterates through the collection.

 

method GetEnumerator: IEnumerator

 

IEnumerator GetEnumerator()

 

Function GetEnumerator() As IEnumerator

Remove

 

method Remove(plugin: PluginDescriptor)

 

void Remove(PluginDescriptor plugin)

 

Sub Remove(plugin As PluginDescriptor)

Parameters:

  • plugin:

ToArray

Creates an array from the PluginList.

 

method ToArray: array of PluginDescriptor

 

PluginDescriptor[] ToArray()

 

Function ToArray() As PluginDescriptor()