ExportCodeAnalysisRuleAttribute Class

Definition

Attribute defining a rule export, and the metadata about that rule. Implements ISqlAnalysisRuleMetadata, which should be used on the importer side to ensure type consistency

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)]
[System.ComponentModel.Composition.MetadataAttribute]
public class ExportCodeAnalysisRuleAttribute : Microsoft.SqlServer.Dac.Extensibility.ExportStandardMetadataAttribute, Microsoft.SqlServer.Dac.CodeAnalysis.ISqlAnalysisRuleMetadata
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false)>]
[<System.ComponentModel.Composition.MetadataAttribute>]
type ExportCodeAnalysisRuleAttribute = class
    inherit ExportStandardMetadataAttribute
    interface ISqlAnalysisRuleMetadata
    interface IStandardMetadata
Public Class ExportCodeAnalysisRuleAttribute
Inherits ExportStandardMetadataAttribute
Implements ISqlAnalysisRuleMetadata
Inheritance
ExportCodeAnalysisRuleAttribute
Attributes
Implements

Constructors

ExportCodeAnalysisRuleAttribute(String, String)

Constructor

Properties

Category

Category

Description

The description of the rule. This should be a short human readable description of what the rule is intended to warn against or block. This field is localizable, but this should be done be subclassing ExportCodeAnalysisRuleAttribute and overriding the Description property.

DisplayName (Inherited from ExportStandardMetadataAttribute)
Id (Inherited from ExportStandardMetadataAttribute)
PlatformCompatibility (Inherited from ExportStandardMetadataAttribute)
RuleScope

RuleScope

Version (Inherited from ExportStandardMetadataAttribute)

Applies to