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
pluginInfoPluginInfo
PluginInfo(string?, string?, string?)
Represents information about a plugin.
public PluginInfo(string? guid, string? name, string? version)
Parameters
guidstringThe unique identifier for the plugin.
namestringThe name of the plugin.
versionstringThe 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
relativePathstringThe 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
infoStaticTypeTypeThe 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
infoStaticTypeTypeThe static type that contains plugin information.
infoTypePluginInfoTypeThe 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.