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
- StreamHelper.cs
- GeneralTransform2DTo3D.cs
- AncestorChangedEventArgs.cs
- ViewPort3D.cs
- ListDesigner.cs
- RightsManagementPermission.cs
- Registry.cs
- Normalization.cs
- EntityClassGenerator.cs
- DataObjectAttribute.cs
- ApplicationCommands.cs
- OleDbPermission.cs
- XhtmlBasicLinkAdapter.cs
- OracleMonthSpan.cs
- NameValueFileSectionHandler.cs
- MulticastNotSupportedException.cs
- Pointer.cs
- AssemblyBuilder.cs
- AsmxEndpointPickerExtension.cs
- Util.cs
- dataprotectionpermission.cs
- ToolboxBitmapAttribute.cs
- ObjectListCommand.cs
- CompoundFileDeflateTransform.cs
- TraceXPathNavigator.cs
- TrackBarRenderer.cs
- EventProxy.cs
- PenLineJoinValidation.cs
- WinEventQueueItem.cs
- ChangeInterceptorAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- DataTableCollection.cs
- ObjectStateEntry.cs
- ScrollViewer.cs
- HashCoreRequest.cs
- XmlExpressionDumper.cs
- ToolTip.cs
- OleDbDataAdapter.cs
- NonParentingControl.cs
- ViewgenGatekeeper.cs
- TextBoxBase.cs
- LineVisual.cs
- DataSourceXmlSerializationAttribute.cs
- ResourcePool.cs
- PropertyValueChangedEvent.cs
- LocationUpdates.cs
- DSASignatureDeformatter.cs
- DbDataRecord.cs
- TreeChangeInfo.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PostBackOptions.cs
- JumpItem.cs
- RowToFieldTransformer.cs
- XmlSortKey.cs
- DataGridLengthConverter.cs
- securitycriticaldata.cs
- PeerContact.cs
- WindowsContainer.cs
- ReferencedCollectionType.cs
- UIElementParagraph.cs
- EventLogEntryCollection.cs
- Transform.cs
- LinqDataSourceEditData.cs
- StateWorkerRequest.cs
- MouseWheelEventArgs.cs
- PolicyManager.cs
- TemplatedMailWebEventProvider.cs
- CompilerScopeManager.cs
- DBConnection.cs
- DataGridViewHitTestInfo.cs
- DetailsViewInsertedEventArgs.cs
- GridErrorDlg.cs
- TemplateInstanceAttribute.cs
- SerializationException.cs
- MessageSecurityOverMsmq.cs
- SecurityVerifiedMessage.cs
- FontCacheUtil.cs
- Quaternion.cs
- OleDbException.cs
- BoundColumn.cs
- SessionStateModule.cs
- DeferredElementTreeState.cs
- BaseDataBoundControl.cs
- ResolveDuplex11AsyncResult.cs
- GridViewAutoFormat.cs
- fixedPageContentExtractor.cs
- UdpUtility.cs
- OciLobLocator.cs
- FlowDocumentFormatter.cs
- ObjectTag.cs
- TrustLevelCollection.cs
- SiteIdentityPermission.cs
- XmlSerializerSection.cs
- TextOnlyOutput.cs
- ItemMap.cs
- RefreshPropertiesAttribute.cs
- CatalogPartChrome.cs
- _HeaderInfoTable.cs
- RelationshipEntry.cs
- RuleInfoComparer.cs