// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
namespace WixToolset.Dtf.WindowsInstaller
{
using System.Diagnostics.CodeAnalysis;
///
/// Contains specific information about an error encountered by the ,
/// , or methods of the
/// class.
///
[SuppressMessage("Microsoft.Performance", "CA1815:OverrideEqualsAndOperatorEqualsOnValueTypes")]
public struct ValidationErrorInfo
{
private ValidationError error;
private string column;
internal ValidationErrorInfo(ValidationError error, string column)
{
this.error = error;
this.column = column;
}
///
/// Gets the type of validation error encountered.
///
public ValidationError Error
{
get
{
return this.error;
}
}
///
/// Gets the column containing the error, or null if the error applies to the whole row.
///
public string Column
{
get
{
return this.column;
}
}
}
}