날자별

2014 6월
 1
2345678
9101112131415
16171819202122
23242526272829
30  

windows event log

출처 http://mainia.tistory.com/412

이벤트로그 쓰기 [csharp]static void Main(string[] args) { WriteEventLogEntry("This is an entry in the event log by daveoncsharp.com"); }

private static void WriteEventLogEntry(string message) { // Create an instance of EventLog System.Diagnostics.EventLog eventLog = new System.Diagnostics.EventLog();

// Check if the event source exists. If not create it. if (!System.Diagnostics.EventLog.SourceExists("TestApplication")) { // "Application" 이름이 […]

Linq 샘플

select case [csharp]static internal ProtoTestRES doHello(ProtoTestASK r_ask) { try { var res = new ProtoTestRES(); var dataContext = new NamuDataClassesDataContext();

var listMember = from itemMember in dataContext.tb_Member where itemMember.fd_Member_nID == 1 select itemMember;

foreach( var itemMember in listMember) { res.m_Member_nID = itemMember.fd_Member_nID; res.m_Member_strEmail = itemMember.fd_Member_strEmail; }

return res; } catch (Exception ex) […]