Udostępnij za pośrednictwem


AcceptEmptyServiceProviderAttribute Klasa

Definicja

Informuje analizator i kompilator XAML, że mogą ignorować dostarczonych dostawców usług w metodach i konstruktorach w klasie przypisanej.

[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class AcceptEmptyServiceProviderAttribute : Attribute
type AcceptEmptyServiceProviderAttribute = class
    inherit Attribute
Dziedziczenie
System.Attribute
AcceptEmptyServiceProviderAttribute
Atrybuty
System.AttributeUsageAttribute

Uwagi

Deweloperzy powinni zauważyć, że ten atrybut nie gwarantuje, że analizator nie null przejdzie zamiast dostarczonego dostawcy usług. Pozwala to tylko na to, że mogą to zrobić.

Konstruktory

AcceptEmptyServiceProviderAttribute()

Tworzy nowy AcceptEmptyServiceProviderAttribute z wartościami domyślnymi.

Dotyczy