CanBeNull Property

MetaDataMember.CanBeNull Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets whether the value of this member can be assigned the null value.

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

public abstract bool CanBeNull { get; }

Property Value

Type: System.Boolean
true if this member can be assigned the null value; otherwise, false.

This property is dependent on the DbType property, and is provided for convenience.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft