StackTraceHiddenAttribute Class

Indicates that a stack trace leaves out a method, or the methods of a type.

[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)]
public sealed class StackTraceHiddenAttribute : Attribute

Remarks

This type is available in the netstandard2.0 and .NET Framework builds of Louis alone, because the BCL of every other build has it.

No runtime honors this type: .NET Framework looks for no such attribute, and .NET looks for the attribute of its own BCL. This type is of use to code that formats a stack trace and looks for the attribute by name.

The .NET builds of Louis forward this type to the attribute of the BCL. When an application loads a library that uses this type together with one of those builds, the runtime honors the attribute.

Inheritance
Attribute StackTraceHiddenAttribute

Constructors

NameDescription
StackTraceHiddenAttribute()

StackTraceHiddenAttribute()

Available in: net48netstandard2.0(not available in the other target frameworks of the package)

public StackTraceHiddenAttribute()

No documentation is available.