InheritanceMappingAttribute.IsDefault Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets whether an object of this type in instantiated when the discriminator value does not match a specified value.

Namespace:   System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public bool IsDefault { get; set; }

Property Value

Type: System.Boolean

Default = false.

Exactly one of the InheritanceMappingAttribute attributes must be declared with IsDefault as true.

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1
Return to top