Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Validation / ValidationErrorInfo.cs / 1305376 / ValidationErrorInfo.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Validation { using System; using System.Collections.Generic; using System.Text; using System.Activities.Validation; using System.Runtime; [Serializable] [Fx.Tag.XamlVisible(false)] public class ValidationErrorInfo { public ValidationErrorInfo(string message) { // Used to initialize violations that correspond // to exceptions triggered during validation. this.Message = message; this.PropertyName = string.Empty; this.FileName = string.Empty; this.IsWarning = false; } public ValidationErrorInfo(ValidationError validationError) { this.Id = validationError.Id; this.Message = validationError.Message; this.PropertyName = validationError.PropertyName; this.FileName = string.Empty; this.IsWarning = validationError.IsWarning; } public string Id { get; private set; } public string Message { get; private set; } public string PropertyName { get; private set; } public string FileName { get; set; } public bool IsWarning { get; private set; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Validation { using System; using System.Collections.Generic; using System.Text; using System.Activities.Validation; using System.Runtime; [Serializable] [Fx.Tag.XamlVisible(false)] public class ValidationErrorInfo { public ValidationErrorInfo(string message) { // Used to initialize violations that correspond // to exceptions triggered during validation. this.Message = message; this.PropertyName = string.Empty; this.FileName = string.Empty; this.IsWarning = false; } public ValidationErrorInfo(ValidationError validationError) { this.Id = validationError.Id; this.Message = validationError.Message; this.PropertyName = validationError.PropertyName; this.FileName = string.Empty; this.IsWarning = validationError.IsWarning; } public string Id { get; private set; } public string Message { get; private set; } public string PropertyName { get; private set; } public string FileName { get; set; } public bool IsWarning { get; private set; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TraceAsyncResult.cs
- StreamAsIStream.cs
- StaticExtensionConverter.cs
- EventMappingSettings.cs
- InternalControlCollection.cs
- DesignTimeParseData.cs
- _Events.cs
- EmptyStringExpandableObjectConverter.cs
- WebBrowser.cs
- SmtpDigestAuthenticationModule.cs
- TextHidden.cs
- Rotation3DAnimationBase.cs
- SmtpFailedRecipientException.cs
- DataGridViewColumnCollectionDialog.cs
- EntryWrittenEventArgs.cs
- RegexEditorDialog.cs
- EnumValidator.cs
- BufferedGraphics.cs
- SafeSecurityHelper.cs
- ConstantCheck.cs
- XmlObjectSerializerReadContextComplex.cs
- PowerModeChangedEventArgs.cs
- DependentTransaction.cs
- MultiView.cs
- Handle.cs
- BaseCollection.cs
- RightsManagementInformation.cs
- ControllableStoryboardAction.cs
- PropertyEntry.cs
- XmlEncoding.cs
- RequestQueryParser.cs
- Char.cs
- ConfigDefinitionUpdates.cs
- XmlHelper.cs
- TdsParserSessionPool.cs
- WindowsEditBoxRange.cs
- VisualProxy.cs
- JsonByteArrayDataContract.cs
- DataGridViewRowConverter.cs
- QuaternionConverter.cs
- PersonalizationStateInfoCollection.cs
- UmAlQuraCalendar.cs
- SafeRightsManagementPubHandle.cs
- LoadRetryConstantStrategy.cs
- InvalidAsynchronousStateException.cs
- SQlBooleanStorage.cs
- HTMLTagNameToTypeMapper.cs
- ServiceInfoCollection.cs
- KeyProperty.cs
- DbCommandDefinition.cs
- CompleteWizardStep.cs
- EventHandlerList.cs
- Storyboard.cs
- TiffBitmapDecoder.cs
- UIntPtr.cs
- DefaultSerializationProviderAttribute.cs
- StyleCollectionEditor.cs
- ExceptionUtil.cs
- GregorianCalendar.cs
- CollectionDataContractAttribute.cs
- DesignerView.Commands.cs
- UniqueEventHelper.cs
- ChannelServices.cs
- SettingsBase.cs
- CanExecuteRoutedEventArgs.cs
- Internal.cs
- bindurihelper.cs
- SqlInternalConnection.cs
- RouteTable.cs
- DocumentGridPage.cs
- ExpressionBindings.cs
- XPathExpr.cs
- EntityFrameworkVersions.cs
- NativeMethods.cs
- DynamicMethod.cs
- CodeRemoveEventStatement.cs
- ThreadLocal.cs
- UniqueEventHelper.cs
- DataKey.cs
- KeyPressEvent.cs
- NonBatchDirectoryCompiler.cs
- VarRefManager.cs
- RevocationPoint.cs
- OrthographicCamera.cs
- IdentityManager.cs
- MethodBuilderInstantiation.cs
- SelectionChangedEventArgs.cs
- MouseActionConverter.cs
- ForwardPositionQuery.cs
- HtmlTitle.cs
- DataComponentNameHandler.cs
- ImageConverter.cs
- SessionStateSection.cs
- DataList.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ImageDrawing.cs
- BasicAsyncResult.cs
- TriggerCollection.cs
- SystemDropShadowChrome.cs
- ContentPropertyAttribute.cs