ExportCodeAnalysisRuleAttribute ExportCodeAnalysisRuleAttribute 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
type ExportCodeAnalysisRuleAttribute = class
    inherit ExportStandardMetadataAttribute
    interface ISqlAnalysisRuleMetadata
    interface IStandardMetadata
Public Class ExportCodeAnalysisRuleAttribute
Inherits ExportStandardMetadataAttribute
Implements ISqlAnalysisRuleMetadata
Inheritance
ExportCodeAnalysisRuleAttributeExportCodeAnalysisRuleAttributeExportCodeAnalysisRuleAttribute
Attributes
Implements

Constructors

ExportCodeAnalysisRuleAttribute(String, String) ExportCodeAnalysisRuleAttribute(String, String) ExportCodeAnalysisRuleAttribute(String, String)

Constructor

Properties

Category Category Category Category
Description Description 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 DisplayName DisplayName Inherited from ExportStandardMetadataAttribute
Id Id Id Inherited from ExportStandardMetadataAttribute
PlatformCompatibility PlatformCompatibility PlatformCompatibility Inherited from ExportStandardMetadataAttribute
RuleScope RuleScope RuleScope RuleScope
Version Version Version Inherited from ExportStandardMetadataAttribute

Applies to