C# 클래스 Elastacloud.AzureManagement.Fluent.Types.ConfigurationFile

Abstract base class used for all types of configuration file
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 메소드들

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