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
- StrokeIntersection.cs
- SQLString.cs
- xmlsaver.cs
- AQNBuilder.cs
- XmlSchemaAttributeGroup.cs
- DataServiceSaveChangesEventArgs.cs
- DeflateEmulationStream.cs
- MetadataSerializer.cs
- DataBindingCollection.cs
- TextEncodedRawTextWriter.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- UnionExpr.cs
- ComplexType.cs
- PropertyItem.cs
- ApplicationServiceHelper.cs
- QueryFunctions.cs
- EnumMemberAttribute.cs
- IOException.cs
- Function.cs
- Win32.cs
- CodeIterationStatement.cs
- MimeBasePart.cs
- BrowserCapabilitiesCompiler.cs
- ChangePassword.cs
- FastEncoder.cs
- DesignerForm.cs
- IApplicationTrustManager.cs
- StorageBasedPackageProperties.cs
- XPathPatternBuilder.cs
- TextAnchor.cs
- SqlNotificationRequest.cs
- PrintDialog.cs
- CodeSnippetExpression.cs
- MenuAdapter.cs
- ComplexTypeEmitter.cs
- SyntaxCheck.cs
- Baml2006ReaderSettings.cs
- ClaimTypes.cs
- XmlDocumentFragment.cs
- SystemColors.cs
- OutputCacheProfileCollection.cs
- FrameworkPropertyMetadata.cs
- RepeaterItemCollection.cs
- ReceiveMessageContent.cs
- ToolStripItemCollection.cs
- MetaTableHelper.cs
- URLString.cs
- ReadOnlyTernaryTree.cs
- SpecularMaterial.cs
- FixedSOMContainer.cs
- InvalidPipelineStoreException.cs
- SqlSupersetValidator.cs
- nulltextnavigator.cs
- LayoutDump.cs
- ClientSettings.cs
- AxHostDesigner.cs
- UriExt.cs
- PcmConverter.cs
- ValueExpressions.cs
- StopRoutingHandler.cs
- OracleConnectionString.cs
- ControlTemplate.cs
- DataGridComponentEditor.cs
- RowSpanVector.cs
- HMACMD5.cs
- FormsAuthenticationModule.cs
- ItemsPresenter.cs
- EventHandlersStore.cs
- BooleanAnimationUsingKeyFrames.cs
- EventProviderWriter.cs
- HttpCookiesSection.cs
- SamlSecurityToken.cs
- RegistryDataKey.cs
- CollectionViewSource.cs
- SequenceQuery.cs
- HebrewNumber.cs
- Graph.cs
- AspNetHostingPermission.cs
- ContainerUIElement3D.cs
- XmlTypeMapping.cs
- ReadOnlyNameValueCollection.cs
- Main.cs
- WebPartConnectionCollection.cs
- HttpRuntimeSection.cs
- DataBindingCollectionConverter.cs
- DataGridRelationshipRow.cs
- filewebresponse.cs
- sqlser.cs
- DataGridColumnCollection.cs
- SchemaImporterExtensionsSection.cs
- FontDifferentiator.cs
- Query.cs
- SoapTypeAttribute.cs
- XmlIlTypeHelper.cs
- RoutedEventArgs.cs
- HandleRef.cs
- ClientCultureInfo.cs
- DrawingAttributes.cs
- ScriptDescriptor.cs
- JavaScriptSerializer.cs