Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / WorkflowValidationFailedException.cs / 1305376 / WorkflowValidationFailedException.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Runtime.Serialization; using System.Collections.Generic; using System.Security.Permissions; [Serializable()] public sealed class WorkflowValidationFailedException : Exception { private ValidationErrorCollection errors = null; private WorkflowValidationFailedException(SerializationInfo info, StreamingContext context) : base(info, context) { if (info == null) throw new ArgumentNullException("info"); this.errors = (ValidationErrorCollection)info.GetValue("errors", typeof(ValidationErrorCollection)); if (this.errors == null) throw new SerializationException(SR.GetString(SR.Error_SerializationInsufficientState)); } public WorkflowValidationFailedException() : base(SR.GetString(SR.Error_WorkflowLoadValidationFailed)) { } public WorkflowValidationFailedException(string message) : base(message) { } public WorkflowValidationFailedException(string message, Exception innerException) : base(message, innerException) { } public WorkflowValidationFailedException(string message, ValidationErrorCollection errors) : base(message) { if (errors == null) throw new ArgumentNullException("errors"); this.errors = XomlCompilerHelper.MorphIntoFriendlyValidationErrors(errors); } public override void GetObjectData(SerializationInfo info, StreamingContext context) { if (info == null) throw new ArgumentNullException("info"); base.GetObjectData(info, context); //ValidationErrorCollection is serializable info.AddValue("errors", this.errors, typeof(ValidationErrorCollection)); } public ValidationErrorCollection Errors { get { return this.errors; } } } } // 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
- InfoCardBaseException.cs
- TypeConverterValueSerializer.cs
- XamlStream.cs
- DocumentReference.cs
- ProcessModelSection.cs
- SpeechDetectedEventArgs.cs
- ADMembershipProvider.cs
- UnsafeNativeMethods.cs
- DataGridViewComboBoxCell.cs
- WebPartDescription.cs
- PreviewPrintController.cs
- XmlIlTypeHelper.cs
- DataSet.cs
- ByteAnimationUsingKeyFrames.cs
- WebPartsSection.cs
- PTConverter.cs
- SortKey.cs
- DrawingCollection.cs
- OracleFactory.cs
- CodeAccessSecurityEngine.cs
- MachineKeyValidationConverter.cs
- DataServiceSaveChangesEventArgs.cs
- DataGridViewImageCell.cs
- ForeignKeyConstraint.cs
- GiveFeedbackEventArgs.cs
- CharacterMetricsDictionary.cs
- SecurityKeyIdentifier.cs
- BindingContext.cs
- ColorMap.cs
- invalidudtexception.cs
- OrderByBuilder.cs
- OleDbRowUpdatingEvent.cs
- SerTrace.cs
- FilterQuery.cs
- Point.cs
- TextTreeTextNode.cs
- HandoffBehavior.cs
- TreeView.cs
- PinnedBufferMemoryStream.cs
- XamlUtilities.cs
- AsymmetricKeyExchangeDeformatter.cs
- QuerySubExprEliminator.cs
- CompModSwitches.cs
- KernelTypeValidation.cs
- TranslateTransform3D.cs
- SmiTypedGetterSetter.cs
- wgx_exports.cs
- StartUpEventArgs.cs
- Parameter.cs
- PopupControlService.cs
- Single.cs
- DynamicActivity.cs
- LineUtil.cs
- GrammarBuilder.cs
- ListContractAdapter.cs
- EnvironmentPermission.cs
- WebPageTraceListener.cs
- TextElementEnumerator.cs
- ConfigXmlText.cs
- TableLayoutPanelResizeGlyph.cs
- exports.cs
- InputMethodStateTypeInfo.cs
- X509CertificateTrustedIssuerElementCollection.cs
- FontWeights.cs
- NamedObject.cs
- CssTextWriter.cs
- PageRanges.cs
- DataServiceProviderWrapper.cs
- WebPageTraceListener.cs
- CodeAssignStatement.cs
- EventLogPermissionEntry.cs
- UnsupportedPolicyOptionsException.cs
- SqlDataSourceParameterParser.cs
- BaseParser.cs
- ListViewItem.cs
- CurrencyManager.cs
- SelectedDatesCollection.cs
- BamlRecords.cs
- OpenTypeCommon.cs
- MemberCollection.cs
- XmlNode.cs
- ContainerUIElement3D.cs
- DockPanel.cs
- SoapWriter.cs
- QuaternionAnimation.cs
- CachedFontFace.cs
- CellTreeNode.cs
- Activator.cs
- TransformConverter.cs
- CorrelationManager.cs
- ThreadPool.cs
- MessageSmuggler.cs
- SynchronizedCollection.cs
- StagingAreaInputItem.cs
- EastAsianLunisolarCalendar.cs
- RequestCacheValidator.cs
- SamlAudienceRestrictionCondition.cs
- IntPtr.cs
- CacheDependency.cs
- ItemsPanelTemplate.cs