Export (0) Print
Expand All

XmlSchemaElement.IsNillable Property

Gets or sets information that indicates if xsi:nil can occur in the instance data. Indicates if an explicit nil value can be assigned to the element.

Namespace:  System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public bool IsNillable { get; set; }

Property Value

Type: System.Boolean
If nillable is true, this enables an instance of the element to have the nil attribute set to true. The nil attribute is defined as part of the XML Schema namespace for instances. The default is false.

This applies to element content and not the attributes of the element.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
© 2015 Microsoft