Xamarin.Forms Guides | Samples

Xamarin.Forms.Xaml.AcceptEmptyServiceProviderAttribute Class

Tells the XAML parser and compiler that they may ignore supplied service providers in methods and constructors in the attributed class.

See Also: AcceptEmptyServiceProviderAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class AcceptEmptyServiceProviderAttribute : Attribute

Remarks

Developers should note that this attribute does not guarantee that the parser will not pass null instead of a supplied service provider. It only allows that they may do so.

Requirements

Namespace: Xamarin.Forms.Xaml
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 2.0.0.0

The members of Xamarin.Forms.Xaml.AcceptEmptyServiceProviderAttribute are listed below.

See Also: Attribute

Public Constructors