Below is an example of accessing
EventlofEntityCollection, if I need to filter EventlogEntityCollect using LINQ
I just need to mention object type in my collect after from clause in LINQ statement.
Instead of:
var ev = from e in
elog.Entries where e.Source == "MsiInstaller" &&
e.Message.Contains(megString) select e;
Use:
var
ev = fromEventLogEntrye in elog.Entries where e.Source == "MsiInstaller"
&& e.Message.Contains(megString) select
e;
Example:
EventLog
elog = newEventLog();
/* Tell Which type of log we need to access
1. System
2. Security
3. Application
*/
elog.Log = "Application";
//Filter and Select Eventlog Entries Using LINQ
var ev = fromEventLogEntry e in
elog.Entries where e.Source == "MsiInstaller" &&
e.Message.Contains(megString) select e;
Below is a table Structure created by using DIV Objects, you should keep in mind that W3C clearly stated that we should use table objects only for tabular data, my example here is not encouraging using DIV objects for tabular data, I just use tabular data example for clarification and simplicity.