Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IsAny Property
Collapse the table of content
Expand the table of content

XmlSchemaProviderAttribute.IsAny Property

Gets or sets a value that determines whether the target class is a wildcard, or that the schema for the class has contains only an xs:any element.

Namespace:  System.Xml.Serialization
Assemblies:   System.Xml.XmlSerializer (in System.Xml.XmlSerializer.dll)
  System.Xml (in System.Xml.dll)

public bool IsAny { get; set; }

Property Value

Type: System.Boolean
true, if the class is a wildcard, or if the schema contains only the xs:any element; otherwise, false.

The target class of the attribute can be any class. This can be achieved in the following ways:

  • The method named by the attribute can return null.

  • Set the value of this property to true to prevent the method from being called.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft