Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
AcceptEmptyServiceProviderAttribute Class
Definition
- Namespace:
- Microsoft.Maui.Controls.Xaml
- Assembly:
- Microsoft.Maui.Controls.dll
- Source:
- IMarkupExtension.cs
- Source:
- IMarkupExtension.cs
- Source:
- IMarkupExtension.cs
- Source:
- IMarkupExtension.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tells the XAML parser and compiler that they may ignore supplied service providers in methods and constructors in the attributed class.
public ref class AcceptEmptyServiceProviderAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)]
public sealed class AcceptEmptyServiceProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, Inherited=false)>]
type AcceptEmptyServiceProviderAttribute = class
inherit Attribute
Public NotInheritable Class AcceptEmptyServiceProviderAttribute
Inherits Attribute
- Inheritance
-
AcceptEmptyServiceProviderAttribute
- Attributes
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.
Constructors
| Name | Description |
|---|---|
| AcceptEmptyServiceProviderAttribute() | |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
