Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Compiler / Validation / ValidationError.cs / 1305376 / ValidationError.cs
namespace System.Workflow.ComponentModel.Compiler { using System; using System.Collections; using System.Globalization; #region Class ValidationError [Serializable()] public sealed class ValidationError { private string errorText = string.Empty; private int errorNumber = 0; private Hashtable userData = null; private bool isWarning = false; string propertyName = null; public ValidationError(string errorText, int errorNumber) : this(errorText, errorNumber, false, null) { } public ValidationError(string errorText, int errorNumber, bool isWarning) : this(errorText, errorNumber, isWarning, null) { } public ValidationError(string errorText, int errorNumber, bool isWarning, string propertyName) { this.errorText = errorText; this.errorNumber = errorNumber; this.isWarning = isWarning; this.propertyName = propertyName; } public string PropertyName { get { return this.propertyName; } set { this.propertyName = value; } } public string ErrorText { get { return this.errorText; } } public bool IsWarning { get { return this.isWarning; } } public int ErrorNumber { get { return this.errorNumber; } } public IDictionary UserData { get { if (this.userData == null) this.userData = new Hashtable(); return this.userData; } } public static ValidationError GetNotSetValidationError(string propertyName) { ValidationError error = new ValidationError(SR.GetString(SR.Error_PropertyNotSet, propertyName), ErrorNumbers.Error_PropertyNotSet); error.PropertyName = propertyName; return error; } public override string ToString() { return String.Format(CultureInfo.InvariantCulture, "{0} {1}: {2}", this.isWarning ? "warning" : "error", this.errorNumber, this.errorText); } } #endregion } // 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
- CompressionTransform.cs
- TcpChannelHelper.cs
- KnownBoxes.cs
- InfiniteIntConverter.cs
- ActivityUtilities.cs
- ActiveXHost.cs
- BitmapData.cs
- DbgUtil.cs
- Container.cs
- AuthenticationManager.cs
- RecognizerBase.cs
- CommandBindingCollection.cs
- XamlNamespaceHelper.cs
- PeerApplicationLaunchInfo.cs
- DataReaderContainer.cs
- RenderTargetBitmap.cs
- DataColumn.cs
- ProjectionPlan.cs
- SafeRightsManagementHandle.cs
- DecoderExceptionFallback.cs
- ScrollProviderWrapper.cs
- DrawingContext.cs
- WizardPanelChangingEventArgs.cs
- SHA256Managed.cs
- InternalBufferManager.cs
- HttpCapabilitiesBase.cs
- XmlToDatasetMap.cs
- InkCollectionBehavior.cs
- NullableDoubleSumAggregationOperator.cs
- XmlSecureResolver.cs
- Latin1Encoding.cs
- Italic.cs
- WorkflowRuntimeServiceElement.cs
- AutoScrollHelper.cs
- HtmlLink.cs
- PostBackOptions.cs
- XmlFormatMapping.cs
- XmlNamedNodeMap.cs
- SqlDataReader.cs
- URLIdentityPermission.cs
- InteropBitmapSource.cs
- MultiByteCodec.cs
- WSHttpBindingBaseElement.cs
- ToolStripPanelSelectionGlyph.cs
- SafeTimerHandle.cs
- SoapServerProtocol.cs
- ImageListImageEditor.cs
- WithParamAction.cs
- InternalSafeNativeMethods.cs
- DocumentEventArgs.cs
- PtsCache.cs
- ListBoxItem.cs
- ViewBase.cs
- PointConverter.cs
- SynchronousSendBindingElement.cs
- MatrixTransform3D.cs
- ControlCollection.cs
- _FtpDataStream.cs
- ContextQuery.cs
- RewritingProcessor.cs
- storepermission.cs
- TdsValueSetter.cs
- CaseStatement.cs
- Filter.cs
- MultiSelectRootGridEntry.cs
- RotationValidation.cs
- DownloadProgressEventArgs.cs
- ContentTypeSettingClientMessageFormatter.cs
- WindowsSolidBrush.cs
- PageBuildProvider.cs
- FilteredAttributeCollection.cs
- ExpressionPrefixAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- SafeEventHandle.cs
- XhtmlMobileTextWriter.cs
- PrinterResolution.cs
- HitTestDrawingContextWalker.cs
- SynthesizerStateChangedEventArgs.cs
- CharacterMetricsDictionary.cs
- MenuBase.cs
- GeometryHitTestParameters.cs
- Sentence.cs
- PhysicalAddress.cs
- XmlNode.cs
- MultipleViewProviderWrapper.cs
- EditorBrowsableAttribute.cs
- UriTemplate.cs
- MouseEventArgs.cs
- SamlAdvice.cs
- MouseGesture.cs
- SrgsOneOf.cs
- SqlDependencyUtils.cs
- Debug.cs
- GetPageNumberCompletedEventArgs.cs
- HtmlTernaryTree.cs
- DateTimeParse.cs
- XmlBoundElement.cs
- ConfigXmlCDataSection.cs
- RegistrySecurity.cs
- MissingManifestResourceException.cs