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
- WorkflowPersistenceContext.cs
- TextRangeProviderWrapper.cs
- DataStorage.cs
- HtmlLink.cs
- VirtualStackFrame.cs
- DefaultParameterValueAttribute.cs
- SafeThemeHandle.cs
- WpfKnownMember.cs
- ProfileSection.cs
- MergeFailedEvent.cs
- PLINQETWProvider.cs
- TableItemStyle.cs
- StrokeNodeEnumerator.cs
- ParameterCollectionEditor.cs
- ModelChangedEventArgsImpl.cs
- NegotiateStream.cs
- MessagePartDescriptionCollection.cs
- OnOperation.cs
- EndpointConfigContainer.cs
- Ref.cs
- TripleDES.cs
- MobileFormsAuthentication.cs
- OdbcEnvironment.cs
- TemplateBamlRecordReader.cs
- DrawTreeNodeEventArgs.cs
- InputReferenceExpression.cs
- ScalarOps.cs
- DbProviderConfigurationHandler.cs
- EntityDataReader.cs
- TripleDESCryptoServiceProvider.cs
- DelegatedStream.cs
- CriticalHandle.cs
- RotateTransform.cs
- PixelShader.cs
- WsdlInspector.cs
- XmlSchemaRedefine.cs
- DrawingContext.cs
- SynchronizationLockException.cs
- PeerHopCountAttribute.cs
- _BaseOverlappedAsyncResult.cs
- ImportOptions.cs
- DBAsyncResult.cs
- ExpressionBuilderContext.cs
- ThreadInterruptedException.cs
- XmlBinaryWriter.cs
- DataContext.cs
- BindingBase.cs
- PropertyReference.cs
- StaticTextPointer.cs
- MemberDomainMap.cs
- CompiledRegexRunner.cs
- MenuItemCollection.cs
- FilteredAttributeCollection.cs
- ArglessEventHandlerProxy.cs
- LicenseManager.cs
- PageContentCollection.cs
- SelectedDatesCollection.cs
- SqlClientWrapperSmiStream.cs
- RSAPKCS1SignatureDeformatter.cs
- SecurityPermission.cs
- TableItemStyle.cs
- LinkArea.cs
- SpecialNameAttribute.cs
- WebPartDisplayModeEventArgs.cs
- SystemTcpConnection.cs
- SvcMapFile.cs
- StrokeNodeOperations.cs
- InternalControlCollection.cs
- PackageStore.cs
- AnimationStorage.cs
- ConnectionStringsExpressionBuilder.cs
- HttpSessionStateBase.cs
- Variant.cs
- ChildChangedEventArgs.cs
- EntityContainerEntitySet.cs
- LabelDesigner.cs
- WindowsToolbar.cs
- NetTcpSection.cs
- MinimizableAttributeTypeConverter.cs
- XPathDocumentNavigator.cs
- SQLDecimalStorage.cs
- HtmlFormWrapper.cs
- ActivationService.cs
- RowToParametersTransformer.cs
- SqlFunctions.cs
- StylusDownEventArgs.cs
- ProcessModuleCollection.cs
- ScrollProviderWrapper.cs
- SingleBodyParameterMessageFormatter.cs
- ConfigXmlSignificantWhitespace.cs
- WebServiceErrorEvent.cs
- HtmlForm.cs
- PeerEndPoint.cs
- SimpleRecyclingCache.cs
- FixedSOMLineCollection.cs
- Logging.cs
- ECDsa.cs
- ConfigXmlText.cs
- MatrixKeyFrameCollection.cs
- DataGridViewCellParsingEventArgs.cs