CodeAnalysisServiceSettings Class

SQL Server 2014
 

Updated: April 20, 2017

Defines the optional configuration settings for a CodeAnalysisService. This can determine which rules are run, how to suppress certain problems, and where to save results to. These settings can also be set on the CodeAnalysisService after it has been created, but are included here to make construction more convenient.

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

System::Object
  Microsoft.SqlServer.Dac.CodeAnalysis::CodeAnalysisServiceSettings

public ref class CodeAnalysisServiceSettings sealed 

NameDescription
System_CAPS_pubmethodCodeAnalysisServiceSettings()

Creates a new CodeAnalysisServiceSettings object.

NameDescription
System_CAPS_pubpropertyCodeAnalysisSucceededFile

Optional path to a file that is created if analysis succeeds. This can be used to check whether analysis should be run or not - for instance if analyzing a dacpac, comparing the modification time for the dacpac versus the analysis success file can tell you whether the dacpac is more recent than the last analysis. This property directly maps to CodeAnalysisSucceededFile.

System_CAPS_pubpropertyResultsFile

Optional path to a results file. If this is specified, the analysis service will save all results to an XML file at the end of analysis. If no file path is specified then this will not be done automatically, but SerializeResultsToXml can be used to output the results after analysis has completed. This property directly maps to ResultsFile.

System_CAPS_pubpropertyRuleSettings

Optional rule settings define what rules should be run during analysis and the severity of the problems created. If no CodeAnalysisRuleSettings are specified the default behavior is to run all discovered rules. This property is applied using ApplyRuleSettings.

System_CAPS_pubpropertyShouldSuppressProblem

An optional predicate that can be used to suppress problems raised by rules during analysis. See SetProblemSuppressor for more information. This property is applied using SetProblemSuppressor.

System_CAPS_pubpropertyValidationMode

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(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: