MetaDataMember.CanBeNull Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets whether the value of this member can be assigned the nulla null reference (Nothing in Visual Basic) value.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property CanBeNull As Boolean
public abstract bool CanBeNull { get; }

Property Value

Type: System.Boolean
true if this member can be assigned the nulla null reference (Nothing in Visual Basic) value; otherwise, false.

Remarks

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

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.