System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute Class

Specifies that the attributed code should be excluded from code coverage information.

See Also: ExcludeFromCodeCoverageAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.Property | System.AttributeTargets.Event | System.AttributeTargets.All, AllowMultiple=false, Inherited=false)]
public sealed class ExcludeFromCodeCoverageAttribute : Attribute

Remarks

Placing this attribute on a class or a structure excludes all the members of that class or structure from the collection of code coverage information.

Requirements

Namespace: System.Diagnostics.CodeAnalysis
Assembly: System (in System.dll)
Assembly Versions: 4.0.0.0