TagProviderAttribute Třída

Definice

Definuje metodu, která se má vyvolat, aby vygenerovala značky protokolování pro odkazovaný objekt.

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
Dědičnost
TagProviderAttribute
Atributy

Konstruktory

Name Description
TagProviderAttribute(Type, String)

Inicializuje novou instanci třídy pomocí vlastního TagProviderAttribute zprostředkovatele značek.

Vlastnosti

Name Description
OmitReferenceName

Získá nebo nastaví hodnotu určující, zda má předpona názvu parametru nebo vlastnosti generovaný název každé značky, která se protokoluje.

ProviderMethod

Získá název metody, která poskytuje značky, které se mají protokolovat.

ProviderType

Type Získá obsahující metodu, která poskytuje značky, které mají být protokolovány.

Platí pro

Viz také