CodeAnalysisResult Class
Updated: April 20, 2017
Represents the results of Code Analysis against a particular model. Will include any SqlRuleProblems found, in addition to any errors that occurred during analysis.
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
| Name | Description | |
|---|---|---|
![]() | CodeAnalysisResult() | Creates a CodeAnalysisResult class. |
| Name | Description | |
|---|---|---|
![]() | AnalysisErrors | Gets the errors and messages that occurred during analysis. |
![]() | AnalysisSucceeded | Gets a value that indicates whether the analysis was completed successfully. |
![]() | InitializationErrors | Gets errors that occurred during initialization of code analysis, rule lookup, and anything other than the analysis itself. |
![]() | Problems | Gets the problems discovered by the rules run during code analysis. |
![]() | SuppressionErrors | Gets errors that occurred during calling of the message suppression routine. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | 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. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | 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. |
![]() | ToString() | (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.

