CodeAnalysisServiceFactory Class

Definition

Factory class that supports creation of CodeAnalysisService objects.

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

Constructors

CodeAnalysisServiceFactory()

Methods

CreateAnalysisService(SqlServerVersion)

Creates an analysis service with the standard properties and all rules turned on by default.

CreateAnalysisService(SqlServerVersion, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

CreateAnalysisService(TSqlModel)

Creates an analysis service with the standard properties and all rules turned on by default.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

CreateAnalysisService(TSqlModel, CodeAnalysisServiceSettings)

Creates an analysis service and configures it using the settings passed to the method.

The settings are a convenient way to set up the service in one step, but if you wish to specify some settings after creating the service this is possible via methods and properties on the CodeAnalysisService itself.

This is a convenience method that takes the Version from the model and passes it to the CreateAnalysisService(SqlServerVersion) method.

Applies to