C# Class Mono.Addins.Addin

An add-in.
Afficher le fichier Open project: mono/mono-addins Class Usage Examples

Private Properties

Свойство Type Description
Addin System
LoadAddinInfo void
ResetCachedData void
SetIsUserAddin void

Méthodes publiques

Méthode 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

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

Method Details

CompareVersions() public static méthode

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

GetFullId() public static méthode

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 ///
Résultat string

GetIdName() public static méthode

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. ///
Résultat string

GetIdParts() public static méthode

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 ///
Résultat void

GetIdVersion() public static méthode

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

SupportsVersion() public méthode

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. ///
Résultat bool

ToString() public méthode

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