ProviderAliasAttribute クラス

定義

フィルター処理ルールで使用する ILoggerProvider 実装のエイリアスを定義します。

public ref class ProviderAliasAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public class ProviderAliasAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type ProviderAliasAttribute = class
    inherit Attribute
Public Class ProviderAliasAttribute
Inherits Attribute
継承
ProviderAliasAttribute
属性

注釈

既定では、フィルター処理規則は、ログ プロバイダーの種類の FullName を構成セクション名として使用して定義されます。

ProviderAliasAttributeでは、フィルター規則を指定するための、2 つ目の追加の、より簡潔でわかりやすい構成セクション名を指定できます。

ログ プロバイダーの種類の FullName は、プロバイダーに対して ProviderAliasAttribute が指定されていて、その構成セクションのフィルター規則がエイリアスに指定されたフィルター規則よりも優先されている場合でも、構成セクション名として使用できます。

コンストラクター

名前 説明
ProviderAliasAttribute(String)

新しい ProviderAliasAttribute インスタンスを作成します。

プロパティ

名前 説明
Alias

プロバイダーのエイリアスを取得します。

TypeId

派生クラスで実装されている場合は、この Attributeの一意の識別子を取得します。

(継承元 Attribute)

メソッド

名前 説明
Equals(Object)

このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

(継承元 Attribute)
GetHashCode()

このインスタンスのハッシュ コードを返します。

(継承元 Attribute)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

派生クラスでオーバーライドされた場合、このインスタンスの値が派生クラスの既定値であるかどうかを示します。

(継承元 Attribute)
Match(Object)

派生クラスでオーバーライドされた場合、このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象