C# Класс Subtext.Extensibility.Providers.Installation

Provider for classes that implement installation procedures. This allows new data providers to implement their own installation code.
Наследование: System.Configuration.Provider.ProviderBase
Показать файл Открыть проект

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

Метод Описание
GatherInstallationInformation ( ) : Control

This method is called by the installation engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the installation.

This method returns a Control used to gather the required installation information. This will be returned back to the provider after the user provides the information.

GetCurrentInstallationVersion ( ) : System.Version

Gets the Version of the current Subtext installation.

GetInstallationStatus ( System.Version currentAssemblyVersion ) : InstallationState

Gets the installation status.

Install ( System.Version assemblyVersion ) : void

Installs this instance.

IsInstallationException ( Exception exception ) : bool

Determines whether the specified exception is due to a problem with the installation.

IsPermissionDeniedException ( Exception exception ) : bool

Determines whether the specified exception is due to a permission denied error.

ProvideInstallationInformation ( Control populatedControl ) : void

Provides the installation information as provided by the user back into the provider. The control passed in should be the same as that provided in GatherInstallationInformation, but with user values supplied within it.

Repair ( ) : bool

Attempts to repair this instance. Returns true if it was successful.

UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void

Updates the current installed version.

Upgrade ( ) : void

Upgrades this instance. Returns true if it was successful.

ValidateInstallationInformation ( Control control ) : string

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.

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

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

This method is called by the installation engine in order to ask the provider what pieces of information it needs from the user in order to proceed with the installation.

This method returns a Control used to gather the required installation information. This will be returned back to the provider after the user provides the information.

public abstract GatherInstallationInformation ( ) : Control
Результат System.Web.UI.Control

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

Gets the Version of the current Subtext installation.
public abstract GetCurrentInstallationVersion ( ) : System.Version
Результат System.Version

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

Gets the installation status.
public abstract GetInstallationStatus ( System.Version currentAssemblyVersion ) : InstallationState
currentAssemblyVersion System.Version The version of the assembly that represents this installation.
Результат InstallationState

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

Installs this instance.
public abstract Install ( System.Version assemblyVersion ) : void
assemblyVersion System.Version The current assembly version being installed.
Результат void

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

Determines whether the specified exception is due to a problem with the installation.
public abstract IsInstallationException ( Exception exception ) : bool
exception System.Exception exception.
Результат bool

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

Determines whether the specified exception is due to a permission denied error.
public abstract IsPermissionDeniedException ( Exception exception ) : bool
exception System.Exception
Результат bool

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

Provides the installation information as provided by the user back into the provider. The control passed in should be the same as that provided in GatherInstallationInformation, but with user values supplied within it.
public abstract ProvideInstallationInformation ( Control populatedControl ) : void
populatedControl System.Web.UI.Control Populated control.
Результат void

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

Attempts to repair this instance. Returns true if it was successful.
public abstract Repair ( ) : bool
Результат bool

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

Updates the current installed version.
public abstract UpdateInstallationVersionNumber ( System.Version newVersion, SqlTransaction transaction ) : void
newVersion System.Version The new version that is now current.
transaction System.Data.SqlClient.SqlTransaction The transaction to perform this upgrade within.
Результат void

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

Upgrades this instance. Returns true if it was successful.
public abstract Upgrade ( ) : void
Результат void

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

Validates the installation information provided by the user. Returns a string with an explanation of why it is incorrect.
public abstract ValidateInstallationInformation ( Control control ) : string
control System.Web.UI.Control control used to provide information.
Результат string