Class PluginInfo

Data class that represents information about a loadable BepInEx plugin. Contains all metadata and additional info required for plugin loading by Chainloader.

Inheritance
System.Object PluginInfo
Implements
ICacheable
Inherited Members
System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx
Assembly: BepInEx.dll
Syntax
public class PluginInfo : ICacheable

Properties

Dependencies

Collection of BepInDependency attributes that describe what plugins this plugin depends on.

Declaration
public IEnumerable<BepInDependency> Dependencies { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<BepInDependency>

Incompatibilities

Collection of BepInIncompatibility attributes that describe what plugins this plugin is incompatible with.

Declaration
public IEnumerable<BepInIncompatibility> Incompatibilities { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<BepInIncompatibility>

Instance

Instance of the plugin that represents this info. NULL if no plugin is instantiated from info (yet)

Declaration
public BaseUnityPlugin Instance { get; }
Property Value
Type Description
BaseUnityPlugin

Location

File path to the plugin DLL

Declaration
public string Location { get; }
Property Value
Type Description
System.String

Metadata

General metadata about a plugin.

Declaration
public BepInPlugin Metadata { get; }
Property Value
Type Description
BepInPlugin

Processes

Collection of BepInProcess attributes that describe what processes the plugin can run on.

Declaration
public IEnumerable<BepInProcess> Processes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<BepInProcess>

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Explicit Interface Implementations

ICacheable.Load(BinaryReader)

Declaration
void ICacheable.Load(BinaryReader br)
Parameters
Type Name Description
System.IO.BinaryReader br

ICacheable.Save(BinaryWriter)

Declaration
void ICacheable.Save(BinaryWriter bw)
Parameters
Type Name Description
System.IO.BinaryWriter bw

Implements

ICacheable