CmisSync.Lib.Events.RequestIgnoredEvent.RequestIgnoredEvent C# (CSharp) Метод

RequestIgnoredEvent() публичный Метод

Initializes a new instance of the CmisSync.Lib.Events.RequestIgnoredEvent class.
public RequestIgnoredEvent ( ISyncEvent ignoredEvent, string reason = null, SyncEventHandler source = null ) : System
ignoredEvent ISyncEvent Ignored event.
reason string Reason why it has been ignored.
source SyncEventHandler The source which ignored the event.
Результат System
        public RequestIgnoredEvent(ISyncEvent ignoredEvent, string reason = null, SyncEventHandler source = null) {
            if (ignoredEvent == null) {
                throw new ArgumentNullException("ignoredEvent");
            }

            if (reason == null && source == null) {
                throw new ArgumentNullException("There must be a reason or source given for the ignored event");
            }

            this.IgnoredEvent = ignoredEvent;
            this.Reason = (reason != null) ? reason : "Event has been ignored by: " + source.ToString();
        }