C# Class Mono.Addins.Description.ModuleDescription

A module definition.
Optional modules can be used to declare extensions which will be registered only if some specified add-in dependencies can be satisfied.
Inheritance: ObjectDescription
ファイルを表示 Open project: slluis/mono-addins Class Usage Examples

Public Methods

Method Description
AddAssemblyReference ( string id, string version ) : void

Adds an add-in reference (there is a typo in the method name)

AddExtensionNode ( string path, string nodeName ) : Mono.Addins.Description.ExtensionNodeDescription

Adds an extension node to the module.

This method creates a new Extension object for the provided path if none exist.

DependsOnAddin ( string addinId ) : bool

Checks if this module depends on the specified add-in.

GetExtension ( string path ) : Mono.Addins.Description.Extension

Gets an extension instance.

This method creates a new Extension object for the provided path if none exist.

ModuleDescription ( ) : System

Initializes a new instance of the Mono.Addins.Description.ModuleDescription class.

Private Methods

Method Description
GetDependenciesElement ( ) : XmlElement
GetRuntimeElement ( ) : XmlElement
InitCollections ( ) : void
ModuleDescription ( XmlElement element ) : System
Read ( Mono.Addins.Serialization.BinaryXmlReader reader ) : void
SaveXml ( XmlElement parent ) : void
Verify ( string location, StringCollection errors ) : void
Write ( Mono.Addins.Serialization.BinaryXmlWriter writer ) : void

Method Details

AddAssemblyReference() public method

Adds an add-in reference (there is a typo in the method name)
public AddAssemblyReference ( string id, string version ) : void
id string /// Identifier of the add-in. ///
version string /// Version of the add-in. ///
return void

AddExtensionNode() public method

Adds an extension node to the module.
This method creates a new Extension object for the provided path if none exist.
public AddExtensionNode ( string path, string nodeName ) : Mono.Addins.Description.ExtensionNodeDescription
path string /// Path that identifies the extension point. ///
nodeName string /// Node name. ///
return Mono.Addins.Description.ExtensionNodeDescription

DependsOnAddin() public method

Checks if this module depends on the specified add-in.
public DependsOnAddin ( string addinId ) : bool
addinId string /// Identifier of the add-in ///
return bool

GetExtension() public method

Gets an extension instance.
This method creates a new Extension object for the provided path if none exist.
public GetExtension ( string path ) : Mono.Addins.Description.Extension
path string /// Path that identifies the extension point that the extension extends. ///
return Mono.Addins.Description.Extension

ModuleDescription() public method

Initializes a new instance of the Mono.Addins.Description.ModuleDescription class.
public ModuleDescription ( ) : System
return System