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 を取得します。

適用対象

こちらもご覧ください