This class represents the EventArgs for Edir events in general.
상속: DirectoryEventArgs
예제 #1
0
    public void MyEdirEventHandler(object source, EdirEventArgs objEventArgs)
    {
        Console.WriteLine("EdirEventsCallback::MyEdirEventHandler Event classification = {0}", objEventArgs.EventClassification);

        EdirEventIntermediateResponse objIR = objEventArgs.IntermediateResponse;
        if (null != objIR)
        {
          Console.WriteLine("EdirEventsCallback::MyEdirEventHandler EventType = {0}", objIR.EventType);

          // is there any data object associated with the event...
          BaseEdirEventData objResponseDataObject = objIR.EventResponseDataObject;
          if (null != objResponseDataObject)
          {
        Console.WriteLine("EdirEventsCallback::MyEdirEventHandler Type of data object = {0}", objResponseDataObject.EventDataType);
          }

          Console.WriteLine("EdirEventsCallback::MyEdirEventHandler EventResultType = {0}", objIR.EventResultType);

          // Now objResponseDataObject can be casted to appropriate type depending
          // upon the value of objResponseDataObject.EventDataType
        }

        Console.WriteLine(QUIT_PROMPT);
    }
예제 #2
0
 public void MyEdirEventHandler02(object source, EdirEventArgs objEventArgs)
 {
     Console.WriteLine("EdirEventsCallback::MyEdirEventHandler02");
 }