Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / ValidationErrorCollection.cs / 1305376 / ValidationErrorCollection.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Collections.ObjectModel; using System.Collections.Generic; #region ValidationErrorCollection [Serializable()] public sealed class ValidationErrorCollection : Collection{ public ValidationErrorCollection() { } public ValidationErrorCollection(ValidationErrorCollection value) { this.AddRange(value); } public ValidationErrorCollection(IEnumerable value) { if (value == null) throw new ArgumentNullException("value"); this.AddRange(value); } protected override void InsertItem(int index, ValidationError item) { if (item == null) throw new ArgumentNullException("item"); base.InsertItem(index, item); } protected override void SetItem(int index, ValidationError item) { if (item == null) throw new ArgumentNullException("item"); base.SetItem(index, item); } public void AddRange(IEnumerable value) { if (value == null) throw new ArgumentNullException("value"); foreach (ValidationError error in value) this.Add(error); } public bool HasErrors { get { if (Count > 0) { foreach (ValidationError e in this) { if (e != null && !e.IsWarning) return true; } } return false; } } public bool HasWarnings { get { if (Count > 0) { foreach (ValidationError e in this) { if (e != null && e.IsWarning) return true; } } return false; } } public ValidationError[] ToArray() { ValidationError[] errorsArray = new ValidationError[this.Count]; this.CopyTo(errorsArray, 0); return errorsArray; } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MultiView.cs
- HtmlTextViewAdapter.cs
- DataRecordInfo.cs
- DataViewSettingCollection.cs
- DataMemberFieldConverter.cs
- Panel.cs
- AxisAngleRotation3D.cs
- RuntimeTrackingProfile.cs
- PluralizationServiceUtil.cs
- Int16Storage.cs
- QueryAccessibilityHelpEvent.cs
- MultiByteCodec.cs
- Brush.cs
- PermissionRequestEvidence.cs
- TemplateField.cs
- FunctionCommandText.cs
- CompoundFileStorageReference.cs
- PropertyNames.cs
- KeyGesture.cs
- ConfigXmlComment.cs
- FocusTracker.cs
- Reference.cs
- EntityTypeEmitter.cs
- ExpressionCopier.cs
- RuntimeConfigLKG.cs
- listitem.cs
- MessageDecoder.cs
- SiteMapDataSourceView.cs
- NavigationWindow.cs
- EdmValidator.cs
- HashHelper.cs
- TextAdaptor.cs
- RankException.cs
- CAGDesigner.cs
- DictionaryBase.cs
- Soap.cs
- BuildProvider.cs
- SRDisplayNameAttribute.cs
- ForeignKeyConstraint.cs
- TimeSpanMinutesConverter.cs
- FormsAuthenticationConfiguration.cs
- DataGridCommandEventArgs.cs
- Region.cs
- FormatterServices.cs
- PointAnimation.cs
- Token.cs
- XPathSelectionIterator.cs
- PropertyAccessVisitor.cs
- NativeWindow.cs
- EventSourceCreationData.cs
- BitmapCache.cs
- XPathNodeList.cs
- PiiTraceSource.cs
- CommandBindingCollection.cs
- ManipulationStartedEventArgs.cs
- DbFunctionCommandTree.cs
- X509CertificateStore.cs
- FlowLayout.cs
- XmlSchemaProviderAttribute.cs
- UserNamePasswordValidator.cs
- objectquery_tresulttype.cs
- SvcMapFileSerializer.cs
- CreateSequence.cs
- EventDescriptorCollection.cs
- Delegate.cs
- ServiceDesigner.cs
- DLinqAssociationProvider.cs
- RuleSettingsCollection.cs
- DbSetClause.cs
- RangeValuePatternIdentifiers.cs
- TransportElement.cs
- EntityDataSourceStatementEditor.cs
- GiveFeedbackEvent.cs
- EventDescriptor.cs
- ConstructorExpr.cs
- MatrixConverter.cs
- ValueTypeFixupInfo.cs
- WebPartActionVerb.cs
- DupHandleConnectionReader.cs
- OrderedEnumerableRowCollection.cs
- DataGridViewHitTestInfo.cs
- ValueQuery.cs
- BrushValueSerializer.cs
- ActivityBindForm.Designer.cs
- DataControlFieldCollection.cs
- ContextProperty.cs
- counter.cs
- ParameterInfo.cs
- IntegerFacetDescriptionElement.cs
- ColorIndependentAnimationStorage.cs
- _WinHttpWebProxyDataBuilder.cs
- TextFormatterHost.cs
- XmlNamespaceManager.cs
- ListMarkerSourceInfo.cs
- Axis.cs
- Quaternion.cs
- QilChoice.cs
- PromptBuilder.cs
- DataGridViewCellEventArgs.cs
- AllMembershipCondition.cs