예제 #1
0
        public static EventAPI.EventLogRecord DeepCopy(EventAPI.EventLogRecord template)
        {
            EventAPI.EventLogRecord copy = new EventAPI.EventLogRecord();

            copy.pszEventCategory = new string(template.pszEventCategory.ToCharArray());
            copy.dwEventSourceId  = template.dwEventSourceId;
            copy.dwEventRecordId  = template.dwEventRecordId;
            copy.dwEventDateTime  = template.dwEventDateTime;
            copy.pszEventType     = new string(template.pszEventType.ToCharArray());
            copy.pszComputer      = new string(template.pszComputer.ToCharArray());
            copy.pszDescription   = new string(template.pszDescription.ToCharArray());
            copy.pszEventSource   = new string(template.pszEventSource.ToCharArray());
            copy.pszUser          = new string(template.pszUser.ToCharArray());

            return(copy);
        }
예제 #2
0
 public EventLogRecord(EventAPI.EventLogRecord record)
 {
     _record = record;
 }