CodeAnalysisResult Class

Definition

The results of Code Analysis against a particular model. Will include any SqlRuleProblems found, in addition to any errors that occurred during analysis

public sealed class CodeAnalysisResult
type CodeAnalysisResult = class
Public NotInheritable Class CodeAnalysisResult
Inheritance
CodeAnalysisResult

Constructors

CodeAnalysisResult()

Creates a CodeAnalysisResult

Properties

AnalysisErrors

Errors and messages that occurred during analysis.

AnalysisSucceeded

Was analysis completed successfully? Analysis may fail for a number of reasons, for instance if errors already exist in the model before processing.

InitializationErrors

Gets errors that occurred during initialization of code analysis, rule lookup, and anything other than the analysis itself.

Problems

Any problems discovered by the rules run during code analysis

SuppressionErrors

Gets errors that occurred during calling of the message suppression routine.

Methods

GetAllErrors()

Gets all errors, whether during initialization or during the analysis process. This does not include the Problems found during analysis since these are returned separately.

SerializeResultsToXml(Stream)

Serializes the results in XML format to an output stream. For backwards compatibility

Only the problems discovered during analysis are output. No errors that occurred during the analysis process will be output.

SerializeResultsToXml(String)

Serializes the results in XML format to an output file.

Only the problems discovered during analysis are output. No errors that occurred during the analysis process will be output.

Applies to