C# Class Mono.Addins.Addin

An add-in.
Mostrar archivo Open project: mono/mono-addins Class Usage Examples

Private Properties

Property Type Description
Addin System
LoadAddinInfo void
ResetCachedData void
SetIsUserAddin void

Public Methods

Method Description
CompareVersions ( string v1, string v2 ) : int

Compares two add-in versions

GetFullId ( string ns, string id, string version ) : string

Returns the identifier of an add-in

GetIdName ( string addinId ) : string

Given a full add-in identifier, returns the namespace and name of the add-in (it removes the version number)

GetIdParts ( string addinId, string &name, string &version ) : void

Splits a full add-in identifier in name and version

GetIdVersion ( string addinId ) : string

Given a full add-in identifier, returns the version the add-in

SupportsVersion ( string version ) : bool

Checks version compatibility.

This method checks the CompatVersion property to know if the provided version is compatible with the version of this add-in.

ToString ( ) : string

Returns a System.String that represents the current Mono.Addins.Addin.

Private Methods

Method Description
Addin ( AddinDatabase database, string domain, string id ) : System
LoadAddinInfo ( ) : void
ResetCachedData ( ) : void
SetIsUserAddin ( AddinDescription adesc ) : void

Method Details

CompareVersions() public static method

Compares two add-in versions
public static CompareVersions ( string v1, string v2 ) : int
v1 string /// A version ///
v2 string /// A version ///
return int

GetFullId() public static method

Returns the identifier of an add-in
public static GetFullId ( string ns, string id, string version ) : string
ns string /// Namespace of the add-in ///
id string /// Name of the add-in ///
version string /// Version of the add-in ///
return string

GetIdName() public static method

Given a full add-in identifier, returns the namespace and name of the add-in (it removes the version number)
public static GetIdName ( string addinId ) : string
addinId string /// Add-in identifier. ///
return string

GetIdParts() public static method

Splits a full add-in identifier in name and version
public static GetIdParts ( string addinId, string &name, string &version ) : void
addinId string /// Add-in identifier. ///
name string /// The resulting name ///
version string /// The resulting version ///
return void

GetIdVersion() public static method

Given a full add-in identifier, returns the version the add-in
public static GetIdVersion ( string addinId ) : string
addinId string
return string

SupportsVersion() public method

Checks version compatibility.
This method checks the CompatVersion property to know if the provided version is compatible with the version of this add-in.
public SupportsVersion ( string version ) : bool
version string /// An add-in version. ///
return bool

ToString() public method

Returns a System.String that represents the current Mono.Addins.Addin.
public ToString ( ) : string
return string