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
- Pair.cs
- activationcontext.cs
- Quack.cs
- ExpandSegment.cs
- StylusLogic.cs
- validation.cs
- ExpressionVisitor.cs
- AppDomain.cs
- FieldNameLookup.cs
- SystemInfo.cs
- RtfControlWordInfo.cs
- PasswordBox.cs
- ServiceNameElement.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ZipPackagePart.cs
- CompiledELinqQueryState.cs
- DesignerCatalogPartChrome.cs
- CqlParser.cs
- ZoneIdentityPermission.cs
- ProxyManager.cs
- InternalBase.cs
- Decimal.cs
- Span.cs
- TypeGeneratedEventArgs.cs
- DatatypeImplementation.cs
- VoiceChangeEventArgs.cs
- TextRangeEdit.cs
- CollectionBuilder.cs
- ExpressionBindingCollection.cs
- Visual3DCollection.cs
- HyperLinkDataBindingHandler.cs
- ScrollEvent.cs
- ResourceDescriptionAttribute.cs
- ExpressionEditorSheet.cs
- SingleAnimation.cs
- MouseDevice.cs
- DocumentsTrace.cs
- Exceptions.cs
- BooleanSwitch.cs
- AuthStoreRoleProvider.cs
- HttpFileCollectionBase.cs
- BaseAsyncResult.cs
- ComplusEndpointConfigContainer.cs
- DataBindingHandlerAttribute.cs
- SaveFileDialog.cs
- WindowsGraphicsWrapper.cs
- TemplateField.cs
- MailBnfHelper.cs
- ImportContext.cs
- SqlUDTStorage.cs
- DeferredSelectedIndexReference.cs
- XmlSortKey.cs
- RuntimeConfigLKG.cs
- X509CertificateRecipientServiceCredential.cs
- TextSelection.cs
- SecUtil.cs
- CapiNative.cs
- ResourceReferenceKeyNotFoundException.cs
- SafeCryptContextHandle.cs
- ChangePasswordDesigner.cs
- TreeView.cs
- CounterSampleCalculator.cs
- ImageBrush.cs
- PolicyUnit.cs
- FontSizeConverter.cs
- DelegatingConfigHost.cs
- MultiPropertyDescriptorGridEntry.cs
- CodeRemoveEventStatement.cs
- SqlProviderUtilities.cs
- Socket.cs
- ProxyHelper.cs
- DoubleConverter.cs
- XmlILOptimizerVisitor.cs
- TypeInitializationException.cs
- XslUrlEditor.cs
- ControlAdapter.cs
- StylusLogic.cs
- GrammarBuilderDictation.cs
- ApplicationHost.cs
- DatatypeImplementation.cs
- GetCardDetailsRequest.cs
- AudioDeviceOut.cs
- HtmlUtf8RawTextWriter.cs
- ObjectContextServiceProvider.cs
- SqlTrackingService.cs
- Message.cs
- FormViewInsertEventArgs.cs
- BindUriHelper.cs
- HttpContext.cs
- Vector3DAnimationUsingKeyFrames.cs
- DeleteWorkflowOwnerCommand.cs
- XmlSubtreeReader.cs
- SqlInternalConnectionTds.cs
- TransformCollection.cs
- TraceContextEventArgs.cs
- UnsafeNativeMethods.cs
- RemotingConfiguration.cs
- CellParaClient.cs
- ObjectDataProvider.cs
- DateTimeConverter2.cs