| SqlEventLogGetSources Method |
Gets event sources from the log that match the specified criteria.
Note: See parameter descriptions for information on filtering your results.
Namespace:
Galactic.EventLog.Sql
Assembly:
Galactic.EventLog.Sql (in Galactic.EventLog.Sql.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax protected List<SqlEventLogNamedItem> GetSources(
int id,
string name
)
Protected Function GetSources (
id As Integer,
name As String
) As List(Of SqlEventLogNamedItem)
protected:
List<SqlEventLogNamedItem^>^ GetSources(
int id,
String^ name
)
member GetSources :
id : int *
name : string -> List<SqlEventLogNamedItem>
Parameters
- id
- Type: SystemInt32
The ID of the event source in the database. Provide a 0 ID to return event sources with any ID from the log. - name
- Type: SystemString
The name of the event source to return. Provide an empty or null string to return event sources with any name from the log.
Return Value
Type:
ListSqlEventLogNamedItemA list of event sources that match the criteria provided.
See Also