Share via


DataRuleProblem Class

Class to store the details of an issue that was detected by a rule.

Inheritance Hierarchy

System.Object
  Microsoft.Data.Schema.StaticCodeAnalysis.DataRuleProblem

Namespace:  Microsoft.Data.Schema.StaticCodeAnalysis
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
Public Class DataRuleProblem
public class DataRuleProblem
public ref class DataRuleProblem
type DataRuleProblem =  class end
public class DataRuleProblem

The DataRuleProblem type exposes the following members.

Constructors

  Name Description
Public method DataRuleProblem Initializes a new instance of the DataRuleProblem class.

Top

Properties

  Name Description
Public property Description Gets or sets the description of the current issue.
Public property EndColumn Gets or sets the end column of the token that contains the issue.
Public property EndLine Gets or sets the end line of the token that contains the issue.
Public property ErrorMessageString Gets the string to use to display the error message.
Public property FileName Gets or sets the file that contains the detected issue.
Public property ModelElement Gets or sets the IModelElement that is associated with the current issue.
Public property Rule Gets or sets the rule that was used to detect the current issue.
Public property Severity Gets or sets the severity of this problem.
Public property StartColumn Gets or sets the start column of the token that contains the issue.
Public property StartLine Gets or sets the start line of the token that contains the issue.

Top

Methods

  Name Description
Public method Equals Overrides the Equals method. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Overrides the GetHashCode() methods. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Data.Schema.StaticCodeAnalysis Namespace