StructuralObject.SetValidValue Method (DbGeometry, Boolean)

.NET Framework (current version)
 

Validates that the property is not null, and throws if it is.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

protected internal static DbGeometry SetValidValue(
	DbGeometry value,
	bool isNullable
)

Parameters

value
Type: System.Data.Spatial.DbGeometry

The DbGeometry value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

Return Value

Type: System.Data.Spatial.DbGeometry

The DbGeometry value being set.

Exception Condition
ConstraintException

The value is null for a non-nullable property.

.NET Framework
Available since 4.5
Return to top
Show: