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
- CodeDirectiveCollection.cs
- XamlDesignerSerializationManager.cs
- securitycriticaldataformultiplegetandset.cs
- WaitForChangedResult.cs
- CodeAccessPermission.cs
- Attachment.cs
- KeyedQueue.cs
- Odbc32.cs
- HtmlControl.cs
- DataObject.cs
- GridViewRowEventArgs.cs
- InvalidPrinterException.cs
- ExplicitDiscriminatorMap.cs
- GroupItem.cs
- DebugInfoExpression.cs
- ScalarOps.cs
- TemplatedAdorner.cs
- Delegate.cs
- CategoryGridEntry.cs
- coordinator.cs
- HttpListenerException.cs
- ConfigurationValues.cs
- XmlException.cs
- ThrowHelper.cs
- TypeInitializationException.cs
- ProtocolReflector.cs
- ValidationSummary.cs
- GeometryHitTestResult.cs
- ImplicitInputBrush.cs
- Group.cs
- ToolStripSplitButton.cs
- newitemfactory.cs
- ScriptDescriptor.cs
- RegexMatchCollection.cs
- OptimalBreakSession.cs
- Debug.cs
- DesignerSelectionListAdapter.cs
- MethodRental.cs
- TouchDevice.cs
- XmlDocumentType.cs
- StreamInfo.cs
- BypassElementCollection.cs
- SecurityKeyEntropyMode.cs
- RowType.cs
- NullableConverter.cs
- ImmutableObjectAttribute.cs
- QuaternionValueSerializer.cs
- DataRelationCollection.cs
- FormView.cs
- CodeCastExpression.cs
- NetworkCredential.cs
- PositiveTimeSpanValidatorAttribute.cs
- Array.cs
- FixedSOMPage.cs
- TextBreakpoint.cs
- MailMessageEventArgs.cs
- EventDescriptor.cs
- WebPartZoneBaseDesigner.cs
- FullTextState.cs
- BaseComponentEditor.cs
- DynamicHyperLink.cs
- AnimationTimeline.cs
- Label.cs
- ClientScriptManagerWrapper.cs
- InvalidComObjectException.cs
- ImportContext.cs
- DeviceOverridableAttribute.cs
- DocumentAutomationPeer.cs
- XmlHelper.cs
- GridViewCancelEditEventArgs.cs
- DoubleIndependentAnimationStorage.cs
- FrameworkReadOnlyPropertyMetadata.cs
- sqlmetadatafactory.cs
- XhtmlTextWriter.cs
- SemanticResultKey.cs
- WebHttpBindingElement.cs
- ExitEventArgs.cs
- Dump.cs
- BaseValidator.cs
- LinqDataSourceDisposeEventArgs.cs
- StringUtil.cs
- AndCondition.cs
- AttachInfo.cs
- SQLChars.cs
- DiscreteKeyFrames.cs
- InteropEnvironment.cs
- KeyInstance.cs
- X509Extension.cs
- FastEncoderWindow.cs
- HtmlTernaryTree.cs
- XmlEncodedRawTextWriter.cs
- ProfileService.cs
- ConnectionManagementElementCollection.cs
- ComboBox.cs
- ReadOnlyDataSource.cs
- NetSectionGroup.cs
- Internal.cs
- WCFBuildProvider.cs
- TypeLoadException.cs
- DispatcherObject.cs