AllowImplicitXmlnsDeclarationAttribute Class

Definition

Caution

Implicit xmlns declarations are now always enabled. The 'allow: false' opt-out is no longer honored. Remove this attribute; it will be removed in .NET 12.

Note

To use this preview API, you must enable preview features in your project by setting the EnablePreviewFeatures property to True in your project file. For more information, see https://aka.ms/dotnet-preview-features.

public ref class AllowImplicitXmlnsDeclarationAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)]
public sealed class AllowImplicitXmlnsDeclarationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)]
[System.Obsolete("Implicit xmlns declarations are now always enabled. The 'allow: false' opt-out is no longer honored. Remove this attribute; it will be removed in .NET 12.")]
public sealed class AllowImplicitXmlnsDeclarationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)>]
type AllowImplicitXmlnsDeclarationAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=false)>]
[<System.Obsolete("Implicit xmlns declarations are now always enabled. The 'allow: false' opt-out is no longer honored. Remove this attribute; it will be removed in .NET 12.")>]
type AllowImplicitXmlnsDeclarationAttribute = class
    inherit Attribute
Public NotInheritable Class AllowImplicitXmlnsDeclarationAttribute
Inherits Attribute
Inheritance
AllowImplicitXmlnsDeclarationAttribute
Attributes

Constructors

Name Description
AllowImplicitXmlnsDeclarationAttribute(Boolean)

Properties

Name Description
Allow

Applies to