Class PluginInfo
Represents information about a plugin.
[Serializable]
public class PluginInfo
- Inheritance
-
PluginInfo
- Inherited Members
- Extension Methods
Constructors
PluginInfo(PluginInfo)
public PluginInfo(PluginInfo pluginInfo)
Parameters
pluginInfo
PluginInfo
PluginInfo(string?, string?, string?)
Represents information about a plugin.
public PluginInfo(string? guid, string? name, string? version)
Parameters
guid
stringThe unique identifier for the plugin.
name
stringThe name of the plugin.
version
stringThe version of the plugin.
Properties
ConfigPath
Gets the path to the plugin's configuration directory.
public string ConfigPath { get; }
Property Value
Guid
Gets or sets the unique identifier for the plugin.
public string Guid { get; protected set; }
Property Value
Name
Gets or sets the name of the plugin.
public string Name { get; protected set; }
Property Value
PluginPath
public string PluginPath { get; }
Property Value
Version
Gets or sets the version of the plugin.
public string Version { get; protected set; }
Property Value
Methods
FromConfigPath(string)
Combines the plugin's configuration path with a relative path to create a full path.
public string FromConfigPath(string relativePath)
Parameters
relativePath
stringThe relative path to combine with the plugin's configuration path.
Returns
- string
A full path that combines the plugin's configuration path with the specified relative path.
FromType(Type)
Creates a new instance of PluginInfo from a static type that contains plugin information.
public static PluginInfo FromType(Type infoStaticType)
Parameters
infoStaticType
TypeThe static type that contains plugin information.
Returns
- PluginInfo
A new instance of PluginInfo.
GetPluginValue(Type, PluginInfoType)
Gets the value of a specific plugin information type from a static type.
public static string? GetPluginValue(Type infoStaticType, PluginInfoType infoType)
Parameters
infoStaticType
TypeThe static type that contains plugin information.
infoType
PluginInfoTypeThe type of plugin information to retrieve.
Returns
- string
The value of the specified plugin information type, or null if not found.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.