SqlCodeAnalysisRule Class

SQL Server 2014
 

Updated: April 20, 2017

Represents a base class for SQL static code analysis rules. An analysis rule analyzes a model / model element and returns a list of problems found during analysis. Implementing classes must have a ExportCodeAnalysisRuleAttribute defined on the class definition to be discovered and used during code analysis.

Namespace:   Microsoft.SqlServer.Dac.CodeAnalysis
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

System::Object
  Microsoft.SqlServer.Dac.CodeAnalysis::SqlAnalysisRule
    Microsoft.SqlServer.Dac.CodeAnalysis::SqlCodeAnalysisRule

public ref class SqlCodeAnalysisRule abstract : SqlAnalysisRule

NameDescription
System_CAPS_protmethodSqlCodeAnalysisRule()

Initializes a new instance of the SqlCodeAnalysisRule class.

NameDescription
System_CAPS_pubpropertySupportedElementTypes

Gets the types of elements checked by this rule. Required if the rule scope is Element, for Model scoped rules this is not relevant.(Inherited from SqlAnalysisRule.)

NameDescription
System_CAPS_pubmethodAnalyze(SqlRuleExecutionContext^)

Performs analysis and returns a list of problems detected.(Inherited from SqlAnalysisRule.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top

Community Additions

ADD
Show: