blob: 3f75326e2c7e384edb5f849d258715883577f329 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
// 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;
/// <summary>
/// Contains specific information about an error encountered by the <see cref="View.Validate"/>,
/// <see cref="View.ValidateNew"/>, or <see cref="View.ValidateFields"/> methods of the
/// <see cref="View"/> class.
/// </summary>
[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;
}
/// <summary>
/// Gets the type of validation error encountered.
/// </summary>
public ValidationError Error
{
get
{
return this.error;
}
}
/// <summary>
/// Gets the column containing the error, or null if the error applies to the whole row.
/// </summary>
public string Column
{
get
{
return this.column;
}
}
}
}
|