C# Класс Elmah.ErrorLogDataSourceAdapter

Methods of this type are designed to serve an System.Web.UI.WebControls.ObjectDataSource control and are adapted according to expected call signatures and behavior.
Показать файл Открыть проект

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

Метод Описание
ErrorLogDataSourceAdapter ( ) : System.Collections.Generic

Initializes a new instance of the ErrorLogDataSourceAdapter class with the default error log implementation.

GetErrorCount ( ) : int

Use as the value for ObjectDataSource.SelectCountMethod.

GetErrors ( int startRowIndex, int maximumRows ) : Elmah.ErrorLogEntry[]

Use as the value for ObjectDataSource.SelectMethod.

The parameters of this method are named after the default values for ObjectDataSource.StartRowIndexParameterName and ObjectDataSource.MaximumRowsParameterName so that the minimum markup is needed for the object data source control.

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

Метод Описание
GetErrorsPage ( int index, int size ) : Elmah.ErrorLogEntry[]

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

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

Initializes a new instance of the ErrorLogDataSourceAdapter class with the default error log implementation.
public ErrorLogDataSourceAdapter ( ) : System.Collections.Generic
Результат System.Collections.Generic

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

Use as the value for ObjectDataSource.SelectCountMethod.
public GetErrorCount ( ) : int
Результат int

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

Use as the value for ObjectDataSource.SelectMethod.
The parameters of this method are named after the default values for ObjectDataSource.StartRowIndexParameterName and ObjectDataSource.MaximumRowsParameterName so that the minimum markup is needed for the object data source control.
public GetErrors ( int startRowIndex, int maximumRows ) : Elmah.ErrorLogEntry[]
startRowIndex int
maximumRows int
Результат Elmah.ErrorLogEntry[]