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
- ProcessModelSection.cs
- DataGridItemEventArgs.cs
- PlaceHolder.cs
- Int32CollectionConverter.cs
- FreezableOperations.cs
- WsatAdminException.cs
- DesignerActionGlyph.cs
- WorkflowApplicationTerminatedException.cs
- AdornedElementPlaceholder.cs
- XmlSchemaInclude.cs
- ControlUtil.cs
- BitmapImage.cs
- DesignerVerbCollection.cs
- GeneralTransform3DGroup.cs
- OracleInfoMessageEventArgs.cs
- ObjectQueryExecutionPlan.cs
- ViewManager.cs
- QueryCacheKey.cs
- CompositeActivityDesigner.cs
- RijndaelCryptoServiceProvider.cs
- ToolboxItemFilterAttribute.cs
- FontNamesConverter.cs
- DataGridViewComponentPropertyGridSite.cs
- ChannelServices.cs
- ImageFormatConverter.cs
- TimeSpanStorage.cs
- Line.cs
- ParameterCollectionEditorForm.cs
- TdsRecordBufferSetter.cs
- SymLanguageType.cs
- GroupBox.cs
- PointValueSerializer.cs
- NodeFunctions.cs
- PersonalizationProviderHelper.cs
- FormView.cs
- AutomationIdentifierGuids.cs
- AttachedPropertyBrowsableAttribute.cs
- ISAPIApplicationHost.cs
- OracleConnectionString.cs
- EastAsianLunisolarCalendar.cs
- StorageConditionPropertyMapping.cs
- DataColumnChangeEvent.cs
- MediaCommands.cs
- ColorConvertedBitmapExtension.cs
- GenericUriParser.cs
- ReferenceSchema.cs
- ColorAnimation.cs
- ComponentDispatcherThread.cs
- PageAsyncTaskManager.cs
- OneOfElement.cs
- TemplateKeyConverter.cs
- OleDbRowUpdatingEvent.cs
- TypeBinaryExpression.cs
- ParallelTimeline.cs
- ThreadExceptionEvent.cs
- FactoryGenerator.cs
- QuaternionConverter.cs
- FamilyMap.cs
- DataError.cs
- HMAC.cs
- TraceContext.cs
- AssociationEndMember.cs
- PrintEvent.cs
- DrawListViewColumnHeaderEventArgs.cs
- ExceptionNotification.cs
- Exception.cs
- BindingExpressionBase.cs
- FactoryRecord.cs
- CredentialCache.cs
- DesignerVerb.cs
- SqlCacheDependencySection.cs
- ArraySubsetEnumerator.cs
- PackUriHelper.cs
- BitmapEffectRenderDataResource.cs
- UrlPath.cs
- TextParentUndoUnit.cs
- FormsAuthenticationCredentials.cs
- SystemInformation.cs
- DataGridViewUtilities.cs
- SynchronousChannel.cs
- DocumentXPathNavigator.cs
- OletxTransactionManager.cs
- _SslState.cs
- Cast.cs
- ToolStripContentPanel.cs
- CancelRequestedQuery.cs
- WebMessageBodyStyleHelper.cs
- ExpressionVisitor.cs
- ButtonBaseAutomationPeer.cs
- DataServiceRequestException.cs
- ZipIOModeEnforcingStream.cs
- VisualTreeUtils.cs
- AssemblyCollection.cs
- DynamicRendererThreadManager.cs
- FixedPageStructure.cs
- UTF8Encoding.cs
- Roles.cs
- Inline.cs
- ToolStripContainer.cs
- LineProperties.cs