TagProviderAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
定义用于为引用对象生成日志记录标记的方法。
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(Type, String) |
使用自定义标记提供程序初始化类的新实例 TagProviderAttribute 。 |
属性
| 名称 | 说明 |
|---|---|
| OmitReferenceName |
获取或设置一个值,该值指示是否将参数或属性的名称作为所记录的每个标记的生成名称的前缀。 |
| ProviderMethod |
获取提供要记录的标记的方法的名称。 |
| ProviderType |
获取 Type 包含提供要记录的标记的方法。 |