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
- SQLDecimalStorage.cs
- PropertyGridView.cs
- SafeUserTokenHandle.cs
- HtmlContainerControl.cs
- ChannelSinkStacks.cs
- Config.cs
- MemoryRecordBuffer.cs
- BoundField.cs
- SqlDataRecord.cs
- StyleSheetRefUrlEditor.cs
- GridSplitterAutomationPeer.cs
- HttpWebResponse.cs
- XmlParserContext.cs
- DispatcherObject.cs
- SqlDataReaderSmi.cs
- ProcessHostServerConfig.cs
- InvalidAsynchronousStateException.cs
- MissingMethodException.cs
- PreProcessInputEventArgs.cs
- XmlAttributes.cs
- ActivityExecutionWorkItem.cs
- AspCompat.cs
- SchemaElementLookUpTable.cs
- EdmError.cs
- ConnectionPoint.cs
- BindingParameterCollection.cs
- StorageEndPropertyMapping.cs
- DesignerMetadata.cs
- CorrelationQueryBehavior.cs
- TreeViewCancelEvent.cs
- WindowsEditBox.cs
- LinkDesigner.cs
- _FixedSizeReader.cs
- _ChunkParse.cs
- TextCharacters.cs
- PathData.cs
- AttributeQuery.cs
- ClipboardProcessor.cs
- DataGridViewRowCollection.cs
- ExceptQueryOperator.cs
- FileSystemWatcher.cs
- DataSourceHelper.cs
- SqlBuffer.cs
- SourceFileBuildProvider.cs
- XsdBuilder.cs
- DbSourceCommand.cs
- SectionUpdates.cs
- ShimAsPublicXamlType.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ListMarkerSourceInfo.cs
- NativeMethods.cs
- HtmlShimManager.cs
- BatchServiceHost.cs
- MarginsConverter.cs
- Merger.cs
- DBConcurrencyException.cs
- WindowVisualStateTracker.cs
- ToolStripLocationCancelEventArgs.cs
- GeneralTransformCollection.cs
- NavigationEventArgs.cs
- ControlPropertyNameConverter.cs
- ValueChangedEventManager.cs
- DataGridViewHeaderCell.cs
- EnumType.cs
- Types.cs
- TypeListConverter.cs
- NGCSerializationManagerAsync.cs
- TextTreeExtractElementUndoUnit.cs
- VisualStyleElement.cs
- CreatingCookieEventArgs.cs
- X509RawDataKeyIdentifierClause.cs
- EnumValidator.cs
- COM2PropertyPageUITypeConverter.cs
- OleDbConnection.cs
- DataGridViewTextBoxCell.cs
- TextEditorLists.cs
- DesignerObject.cs
- ListViewUpdatedEventArgs.cs
- StrokeCollection2.cs
- WpfXamlMember.cs
- DataGridViewRowPrePaintEventArgs.cs
- StaticContext.cs
- WebPartVerbsEventArgs.cs
- ReliableMessagingVersion.cs
- ListDictionaryInternal.cs
- CodeLabeledStatement.cs
- ContentPresenter.cs
- OleStrCAMarshaler.cs
- CommonEndpointBehaviorElement.cs
- MemberDomainMap.cs
- AssociationTypeEmitter.cs
- MultiByteCodec.cs
- OverlappedAsyncResult.cs
- ConfigXmlDocument.cs
- filewebresponse.cs
- TimelineGroup.cs
- UnaryNode.cs
- StatusBarDrawItemEvent.cs
- SweepDirectionValidation.cs
- GridLengthConverter.cs