public TimeConstraint(TimeConstraintMode mode, string containerId) { if (string.IsNullOrEmpty(containerId)) { throw new ArgumentNullException("containerId"); } this.Mode = mode; this.ContainerId = containerId; }