语言

TagProviderAttribute 类

定义

定义用于为引用对象生成日志记录标记的方法。

public ref class TagProviderAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)]
[System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")]
public sealed class TagProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.Property)>]
[<System.Diagnostics.Conditional("CODE_GENERATION_ATTRIBUTES")>]
type TagProviderAttribute = class
    inherit Attribute
Public NotInheritable Class TagProviderAttribute
Inherits Attribute
继承
TagProviderAttribute
特性

构造函数

名称 说明
TagProviderAttribute(Type, String)

使用自定义标记提供程序初始化类的新实例 TagProviderAttribute 。

属性

名称 说明
OmitReferenceName

获取或设置一个值,该值指示是否将参数或属性的名称作为所记录的每个标记的生成名称的前缀。

ProviderMethod

获取提供要记录的标记的方法的名称。

ProviderType

获取 Type 包含提供要记录的标记的方法。

适用于

另请参阅