C# 클래스 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.
상속: ObjectDescription
파일 보기 프로젝트 열기: slluis/mono-addins 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

AddAssemblyReference() 공개 메소드

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. ///
리턴 void

AddExtensionNode() 공개 메소드

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. ///
리턴 Mono.Addins.Description.ExtensionNodeDescription

DependsOnAddin() 공개 메소드

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

GetExtension() 공개 메소드

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. ///
리턴 Mono.Addins.Description.Extension

ModuleDescription() 공개 메소드

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