C# Класс Mono.Addins.Description.AddinDescription

Наследование: IBinaryXmlElement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddinDescription System
FilesChanged bool
FindExtensionNode Mono.Addins.Description.ExtensionNodeDescription
GetBool bool
IBinaryXmlElement void
IBinaryXmlElement void
Merge AddinDescription
MergeExternalData void
ParseString string
ReadBinary AddinDescription
ResetXmlDoc void
SaveBinary void
SaveBinary void
SaveCoreProperty void
SaveXml void
SetBasePath void
SetExtensionsAddinId void
StoreFileInfo void
SupportsVersion bool
TransferCoreProperties void
UnmergeExternalData void
Verify System.Collections.Specialized.StringCollection

Открытые методы

Метод Описание
AddExtensionPoint ( string path ) : ExtensionPoint

Adds an extension point.

Read ( Stream stream, string basePath ) : AddinDescription

Load an add-in description from a stream

Read ( TextReader reader, string basePath ) : AddinDescription

Load an add-in description from a text reader

Read ( string configFile ) : AddinDescription

Load an add-in description from a file

Save ( ) : void

Saves the add-in description.

The description is saved to the file specified in the FileName property.

Save ( string fileName ) : void

Saves the add-in description.

Saves the add-in description to the specified file and sets the FileName property.

SaveToXml ( ) : XmlDocument

Generates an XML representation of the add-in description

Verify ( ) : StringCollection

Verify this instance.

This method checks all the definitions in the description and returns a list of errors. If the returned list is empty, it means that the description is valid.

Приватные методы

Метод Описание
AddinDescription ( ) : System
FilesChanged ( ) : bool
FindExtensionNode ( string path, bool lookInDeps ) : Mono.Addins.Description.ExtensionNodeDescription
GetBool ( string s, bool defval ) : bool
IBinaryXmlElement ( Mono.Addins.Serialization.BinaryXmlReader reader ) : void
IBinaryXmlElement ( Mono.Addins.Serialization.BinaryXmlWriter writer ) : void
Merge ( AddinDescription desc1, AddinDescription desc2 ) : AddinDescription
MergeExternalData ( AddinDescription other ) : void
ParseString ( string input ) : string
ReadBinary ( Mono.Addins.Database.FileDatabase fdb, string configFile ) : AddinDescription
ResetXmlDoc ( ) : void
SaveBinary ( Mono.Addins.Database.FileDatabase fdb ) : void
SaveBinary ( Mono.Addins.Database.FileDatabase fdb, string file ) : void
SaveCoreProperty ( XmlElement elem, string val, string attr, string prop ) : void
SaveXml ( ) : void
SetBasePath ( string path ) : void
SetExtensionsAddinId ( string addinId ) : void
StoreFileInfo ( ) : void
SupportsVersion ( string ver ) : bool
TransferCoreProperties ( bool removeProperties ) : void
UnmergeExternalData ( Hashtable addins ) : void
Verify ( Mono.Addins.Database.AddinFileSystemExtension fs ) : StringCollection

Описание методов

AddExtensionPoint() публичный Метод

Adds an extension point.
public AddExtensionPoint ( string path ) : ExtensionPoint
path string /// Path that identifies the new extension point. ///
Результат ExtensionPoint

Read() публичный статический Метод

Load an add-in description from a stream
public static Read ( Stream stream, string basePath ) : AddinDescription
stream Stream /// The stream ///
basePath string /// The path to be used to resolve relative file paths. ///
Результат AddinDescription

Read() публичный статический Метод

Load an add-in description from a text reader
public static Read ( TextReader reader, string basePath ) : AddinDescription
reader System.IO.TextReader /// The text reader ///
basePath string /// The path to be used to resolve relative file paths. ///
Результат AddinDescription

Read() публичный статический Метод

Load an add-in description from a file
public static Read ( string configFile ) : AddinDescription
configFile string /// The file. ///
Результат AddinDescription

Save() публичный Метод

Saves the add-in description.
The description is saved to the file specified in the FileName property.
/// It is thrown if FileName is not set ///
public Save ( ) : void
Результат void

Save() публичный Метод

Saves the add-in description.
Saves the add-in description to the specified file and sets the FileName property.
public Save ( string fileName ) : void
fileName string /// File name where to save this instance ///
Результат void

SaveToXml() публичный Метод

Generates an XML representation of the add-in description
public SaveToXml ( ) : XmlDocument
Результат System.Xml.XmlDocument

Verify() публичный Метод

Verify this instance.
This method checks all the definitions in the description and returns a list of errors. If the returned list is empty, it means that the description is valid.
public Verify ( ) : StringCollection
Результат System.Collections.Specialized.StringCollection