InheritanceMappingAttribute.Code Property


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

Gets or sets the discriminator code value in a mapped inheritance hierarchy.

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

member Code : Object with get, set

Property Value

Type: System.Object

Must be user-specified. There is no default value.

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