ValidationErrorInfo.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / 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.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK