Code:
/ 4.0 / 4.0 / 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. 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
- JsonDataContract.cs
- HeaderCollection.cs
- DesignerSerializerAttribute.cs
- WebPartHeaderCloseVerb.cs
- DateTimeFormatInfoScanner.cs
- CorrelationQuery.cs
- EasingKeyFrames.cs
- WebPartMovingEventArgs.cs
- WindowsPrincipal.cs
- ToolStripDropDown.cs
- ManagementPath.cs
- IsolatedStorage.cs
- NativeConfigurationLoader.cs
- Translator.cs
- CodeCatchClauseCollection.cs
- AuthenticationService.cs
- DrawingAttributesDefaultValueFactory.cs
- WebEventCodes.cs
- RefreshEventArgs.cs
- UrlMappingsModule.cs
- DataComponentNameHandler.cs
- DependencyObject.cs
- SqlInternalConnectionSmi.cs
- CodeTypeReferenceCollection.cs
- DataServiceProcessingPipelineEventArgs.cs
- ButtonChrome.cs
- TextEndOfParagraph.cs
- ApplicationManager.cs
- UnsafeNativeMethods.cs
- ColumnCollection.cs
- InfoCardBaseException.cs
- TrimSurroundingWhitespaceAttribute.cs
- UniformGrid.cs
- WmlValidatorAdapter.cs
- IntSecurity.cs
- ManifestSignedXml.cs
- baseshape.cs
- RelatedView.cs
- Lock.cs
- DataObject.cs
- HandleCollector.cs
- PageRequestManager.cs
- XmlTextReader.cs
- SynchronizationContext.cs
- HttpListenerResponse.cs
- TemplateField.cs
- LocatorPart.cs
- FlagsAttribute.cs
- RefType.cs
- DynamicResourceExtensionConverter.cs
- Crc32.cs
- Material.cs
- DesignerActionTextItem.cs
- EntityClassGenerator.cs
- PrintPreviewControl.cs
- ProcessHost.cs
- SamlSubjectStatement.cs
- DeploymentSection.cs
- DynamicMethod.cs
- Point4D.cs
- QilCloneVisitor.cs
- UIElementIsland.cs
- RemoteHelper.cs
- _FtpDataStream.cs
- ModifiableIteratorCollection.cs
- MarkedHighlightComponent.cs
- ViewStateModeByIdAttribute.cs
- NonVisualControlAttribute.cs
- InvalidMessageContractException.cs
- Schema.cs
- HMACSHA1.cs
- DataReaderContainer.cs
- EntityCommand.cs
- XmlWrappingReader.cs
- CodeMethodMap.cs
- StringConcat.cs
- ProviderUtil.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- OutputCacheProfile.cs
- PathGeometry.cs
- WpfGeneratedKnownTypes.cs
- MetadataArtifactLoaderComposite.cs
- KeySpline.cs
- LeaseManager.cs
- Knowncolors.cs
- AsyncContentLoadedEventArgs.cs
- VolatileResourceManager.cs
- TextSelectionHighlightLayer.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- DrawingBrush.cs
- TypeExtensions.cs
- CodeBinaryOperatorExpression.cs
- StylusTip.cs
- SafeRegistryHandle.cs
- DynamicMethod.cs
- AssertSection.cs
- FormsAuthenticationConfiguration.cs
- CompositeDuplexBindingElement.cs
- BlockUIContainer.cs
- RegexMatchCollection.cs