public WorkQueueView Copy()
        {
            Server.Application.WorkQueueView serverWorkQueueView = (Server.Application.WorkQueueView)ToServerObject();

            WorkQueueView copiedWorkQueueView = new WorkQueueView(application, serverWorkQueueView);

            return(copiedWorkQueueView);
        }
        public Boolean IsEqual(WorkQueueView compareWorkQueueView)
        {
            Boolean isEqual = base.IsEqual((CoreConfigurationObject)compareWorkQueueView);


            if (fieldDefinitions.Count != compareWorkQueueView.FieldDefinitions.Count)
            {
                isEqual = false;
            }

            else
            {
                for (Int32 currentIndex = 0; currentIndex < fieldDefinitions.Count; currentIndex++)
                {
                    isEqual = isEqual && (fieldDefinitions[currentIndex].DisplayName == compareWorkQueueView.FieldDefinitions[currentIndex].DisplayName);

                    isEqual = isEqual && (fieldDefinitions[currentIndex].PropertyName == compareWorkQueueView.FieldDefinitions[currentIndex].PropertyName);

                    isEqual = isEqual && (fieldDefinitions[currentIndex].DataType == compareWorkQueueView.FieldDefinitions[currentIndex].DataType);

                    isEqual = isEqual && (fieldDefinitions[currentIndex].DefaultValue == compareWorkQueueView.FieldDefinitions[currentIndex].DefaultValue);

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }


            if (filterDefinitions.Count != compareWorkQueueView.FilterDefinitions.Count)
            {
                isEqual = false;
            }

            else
            {
                for (Int32 currentIndex = 0; currentIndex < filterDefinitions.Count; currentIndex++)
                {
                    isEqual = isEqual && (filterDefinitions.Values[currentIndex].PropertyPath == compareWorkQueueView.FilterDefinitions.Values[currentIndex].PropertyPath);

                    isEqual = isEqual && (filterDefinitions.Values[currentIndex].Operator == compareWorkQueueView.FilterDefinitions.Values[currentIndex].Operator);

                    isEqual = isEqual && (filterDefinitions.Values[currentIndex].Parameter.Value.ToString() == compareWorkQueueView.FilterDefinitions.Values[currentIndex].Parameter.Value.ToString());

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            if (sortDefinitions.Count != compareWorkQueueView.SortDefinitions.Count)
            {
                isEqual = false;
            }

            else
            {
                for (Int32 currentIndex = 0; currentIndex < sortDefinitions.Count; currentIndex++)
                {
                    isEqual = isEqual && (sortDefinitions.Values[currentIndex].FieldName == compareWorkQueueView.SortDefinitions.Values[currentIndex].FieldName);

                    isEqual = isEqual && (sortDefinitions.Values[currentIndex].SortDirection == compareWorkQueueView.SortDefinitions.Values[currentIndex].SortDirection);

                    if (!isEqual)
                    {
                        break;
                    }
                }
            }

            return(isEqual);
        }