C# Класс Elastacloud.AzureManagement.Fluent.Types.ConfigurationFile

Abstract base class used for all types of configuration file
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
PersistConfigurationFile ( ConfigurationFileType type ) : void

persists the configuration file to a well known location

RollbackConfigurationFile ( ) : void

Deletes and replaces the configuration - i.e. restores it back to the point it was at beforehand

SaveAs ( string filePath ) : void

Saves the updated version of the Xml document

ToString ( ) : string

Used to return the Xml representation for the current configuration file

Защищенные методы

Метод Описание
ConfigurationFile ( System.Xml.Linq.XDocument doc ) : System

Sets the default XMl document of the configuration file

ConfigurationFile ( string name ) : System

Creates a new instance of the class and checks to see whether the file exists and can be loaded

GetFileExtension ( ) : string

Abstract method returns the file extension

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

Метод Описание
CheckFileExistsAndLoadOriginalVersion ( ) : void

Checks to see whether the original file loads correctly and

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

ConfigurationFile() защищенный Метод

Sets the default XMl document of the configuration file
protected ConfigurationFile ( System.Xml.Linq.XDocument doc ) : System
doc System.Xml.Linq.XDocument
Результат System

ConfigurationFile() защищенный Метод

Creates a new instance of the class and checks to see whether the file exists and can be loaded
protected ConfigurationFile ( string name ) : System
name string
Результат System

GetFileExtension() защищенный абстрактный Метод

Abstract method returns the file extension
protected abstract GetFileExtension ( ) : string
Результат string

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

persists the configuration file to a well known location
public PersistConfigurationFile ( ConfigurationFileType type ) : void
type ConfigurationFileType
Результат void

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

Deletes and replaces the configuration - i.e. restores it back to the point it was at beforehand
public RollbackConfigurationFile ( ) : void
Результат void

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

Saves the updated version of the Xml document
public SaveAs ( string filePath ) : void
filePath string
Результат void

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

Used to return the Xml representation for the current configuration file
public ToString ( ) : string
Результат string