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