StaticCodeAnalysisRule Class
Provides a base class for a group or category of similar rules.
Inheritance Hierarchy
System.Object
Microsoft.Data.Schema.StaticCodeAnalysis.DataRule
Microsoft.Data.Schema.StaticCodeAnalysis.StaticCodeAnalysisRule
Namespace: Microsoft.Data.Schema.StaticCodeAnalysis
Assembly: Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)
Syntax
'Declaration
Public MustInherit Class StaticCodeAnalysisRule _
Inherits DataRule _
Implements IExtension
public abstract class StaticCodeAnalysisRule : DataRule,
IExtension
public ref class StaticCodeAnalysisRule abstract : public DataRule,
IExtension
[<AbstractClass>]
type StaticCodeAnalysisRule =
class
inherit DataRule
interface IExtension
end
public abstract class StaticCodeAnalysisRule extends DataRule implements IExtension
The StaticCodeAnalysisRule type exposes the following members.
Constructors
Name | Description | |
---|---|---|
StaticCodeAnalysisRule | Creates a new default instance of the StaticCodeAnalysisRule. |
Top
Properties
Name | Description | |
---|---|---|
RuleProperties | Gets or sets an object that contains the values of all data rule properties. (Inherited from DataRule.) |
Top
Methods
Name | Description | |
---|---|---|
Analyze | Analyzes a model element and returns any problems that were detected in the element. (Inherited from DataRule.) | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PopulateProperties | Populates the values of the properties for the rule. (Inherited from DataRule.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Fields
Name | Description | |
---|---|---|
StaticCodeAnalysisProblemCategory |
Top
Remarks
Notes to Inheritors
Use the DataRule class as the basis to create a base abstract class (such as this StaticCodeAnalysisRule class) in each of any number of categories. From this class you can create the concrete classes for rules in those categories for a specific data source provider.
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.