Méthode | Description | |
---|---|---|
BeginGetErrors ( int pageIndex, int pageSize, ICollection |
Begins an asynchronous version of GetErrors.
|
|
EndGetErrors ( IAsyncResult asyncResult ) : int |
Ends an asynchronous version of ErrorLog.GetErrors.
|
|
GetError ( string id ) : |
Returns the specified error from the database, or null if it does not exist.
|
|
GetErrors ( int pageIndex, int pageSize, ICollection |
Returns a page of errors from the databse in descending order of logged time.
|
|
GetErrorsAsync ( int pageIndex, int pageSize, ICollection |
Asynchronous version of GetErrors.
|
|
Log ( Error error ) : string |
Logs an error to the database. Use the stored procedure called by this implementation to set a policy on how long errors are kept in the log. The default implementation stores all errors for an indefinite time. |
|
SqlErrorLog ( System.Collections.IDictionary config ) : System |
Initializes a new instance of the SqlErrorLog class using a dictionary of configured settings.
|
|
SqlErrorLog ( string connectionString ) : System |
Initializes a new instance of the SqlErrorLog class to use a specific connection string for connecting to the database.
|
Méthode | Description | |
---|---|---|
ErrorsXmlToList ( XmlReader reader, ICollection |
||
ErrorsXmlToList ( string xml, ICollection |
||
ReadSingleXmlStringResult ( SqlDataReader reader ) : string |
public BeginGetErrors ( int pageIndex, int pageSize, ICollection |
||
pageIndex | int | |
pageSize | int | |
errorEntryList | ICollection |
|
asyncCallback | AsyncCallback | |
asyncState | object | |
Résultat | IAsyncResult |
public EndGetErrors ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | |
Résultat | int |
public GetError ( string id ) : |
||
id | string | |
Résultat |
public GetErrors ( int pageIndex, int pageSize, ICollection |
||
pageIndex | int | |
pageSize | int | |
errorEntryList | ICollection |
|
Résultat | int |
public GetErrorsAsync ( int pageIndex, int pageSize, ICollection |
||
pageIndex | int | |
pageSize | int | |
errorEntryList | ICollection |
|
cancellationToken | CancellationToken | |
Résultat | Task |
public SqlErrorLog ( System.Collections.IDictionary config ) : System | ||
config | System.Collections.IDictionary | |
Résultat | System |
public SqlErrorLog ( string connectionString ) : System | ||
connectionString | string | |
Résultat | System |