StructuralObject.SetValidValue Method

 

Makes sure the value being set for a property is valid.

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

NameDescription
System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Boolean)

Makes sure the Boolean value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Boolean, String)

Makes sure the Boolean value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Byte)

Makes sure the Byte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Byte, String)

Makes sure the Byte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Byte[], Boolean)

Makes sure the T:System.Byte[] value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Byte[], Boolean, String)

Makes sure the T:System.Byte[] value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DateTime)

Makes sure the DateTime value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DateTime, String)

Makes sure the DateTime value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DateTimeOffset)

Makes sure the DateTimeOffset value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DateTimeOffset, String)

Makes sure the DateTimeOffset value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DbGeography, Boolean)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DbGeography, Boolean, String)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DbGeometry, Boolean)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(DbGeometry, Boolean, String)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Decimal)

Makes sure the Decimal value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Decimal, String)

Makes sure the Decimal value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Double)

Makes sure the Double value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Double, String)

Makes sure the Double value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Guid)

Makes sure the Guid value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Guid, String)

Makes sure the Guid value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int16)

Makes sure the Int16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int16, String)

Makes sure the Int16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int32)

Makes sure the Int32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int32, String)

Makes sure the Int32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int64)

Makes sure the Int64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Int64, String)

Makes sure the Int64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Boolean>)

Makes sure the Boolean value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Boolean>, String)

Makes sure the Boolean value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Byte>)

Makes sure the Byte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Byte>, String)

Makes sure the Byte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<DateTime>)

Makes sure the DateTime value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<DateTime>, String)

Makes sure the DateTime value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<DateTimeOffset>)

Makes sure the DateTimeOffset value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<DateTimeOffset>, String)

Makes sure the DateTimeOffset value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Decimal>)

Makes sure the Decimal value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Decimal>, String)

Makes sure the Decimal value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Double>)

Makes sure the Double value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Double>, String)

Makes sure the Double value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Guid>)

Makes sure the Guid value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Guid>, String)

Makes sure the Guid value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int16>)

Makes sure the Int16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int16>, String)

Makes sure the Int16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int32>)

Makes sure the Int32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int32>, String)

Makes sure the Int32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int64>)

Makes sure the Int64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Int64>, String)

Makes sure the Int64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<SByte>)

Makes sure the SByte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<SByte>, String)

Makes sure the SByte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Single>)

Makes sure the Single value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<Single>, String)

Makes sure the Single value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<TimeSpan>)

Makes sure the TimeSpan value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<TimeSpan>, String)

Makes sure the TimeSpan value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt16>)

Makes sure the UInt16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt16>, String)

Makes sure the UInt16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt32>)

Makes sure the UInt32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt32>, String)

Makes sure the UInt32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt64>)

Makes sure the UInt64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Nullable<UInt64>, String)

Makes sure the UInt64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(SByte)

Makes sure the SByte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(SByte, String)

Makes sure the SByte value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Single)

Makes sure the Single value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(Single, String)

Makes sure the Single value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(String, Boolean)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(String, Boolean, String)

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

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(TimeSpan)

Makes sure the TimeSpan value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(TimeSpan, String)

Makes sure the TimeSpan value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt16)

Makes sure the UInt16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt16, String)

Makes sure the UInt16 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt32)

Makes sure the UInt32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt32, String)

Makes sure the UInt32 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt64)

Makes sure the UInt64 value being set for a property is valid.

System_CAPS_protmethodSystem_CAPS_staticSetValidValue(UInt64, String)

Makes sure the UInt64 value being set for a property is valid.

System_CAPS_protmethodSetValidValue<T>(T, T, String)

Sets a complex object for the specified property.


StructuralObject.SetValidValue Method (Boolean)

Makes sure the Boolean value being set for a property is valid.

protected internal static bool SetValidValue(
	bool value
)

Parameters

value
Type: System.Boolean

The Boolean value.

Return Value

Type: System.Boolean

The Boolean value being set.


StructuralObject.SetValidValue Method (Boolean, String)

Makes sure the Boolean value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static bool SetValidValue(
	bool value,
	string propertyName
)

Parameters

value
Type: System.Boolean

The Boolean value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Boolean

The Boolean value being set.


StructuralObject.SetValidValue Method (Byte)

Makes sure the Byte value being set for a property is valid.

protected internal static byte SetValidValue(
	byte value
)

Parameters

value
Type: System.Byte

The value that is being validated.

Return Value

Type: System.Byte

The Byte value that is set.


StructuralObject.SetValidValue Method (Byte, String)

Makes sure the Byte value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static byte SetValidValue(
	byte value,
	string propertyName
)

Parameters

value
Type: System.Byte

The Byte value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Byte

A Byte that is set.


StructuralObject.SetValidValue Method (Byte[], Boolean)

Makes sure the T:System.Byte[] value being set for a property is valid.

protected internal static byte[] SetValidValue(
	byte[] value,
	bool isNullable
)

Parameters

value
Type: System.Byte[]

The value being set.

isNullable
Type: System.Boolean

Indicates whether the property is nullable.

Return Value

Type: System.Byte[]

A Byte value being set.


StructuralObject.SetValidValue Method (Byte[], Boolean, String)

Makes sure the T:System.Byte[] value being set for a property is valid.

protected internal static byte[] SetValidValue(
	byte[] value,
	bool isNullable,
	string propertyName
)

Parameters

value
Type: System.Byte[]

The value passed into the property setter.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Byte[]

The Byte value being validated.

Exception Condition
ConstraintException

If value is null for a non nullable value.


StructuralObject.SetValidValue Method (DateTime)

Makes sure the DateTime value being set for a property is valid.

protected internal static DateTime SetValidValue(
	DateTime value
)

Parameters

value
Type: System.DateTime

The DateTime value.

Return Value

Type: System.DateTime

The DateTime value being set.


StructuralObject.SetValidValue Method (DateTime, String)

Makes sure the DateTime value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static DateTime SetValidValue(
	DateTime value,
	string propertyName
)

Parameters

value
Type: System.DateTime

The DateTime value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.DateTime

The DateTime value being set.


StructuralObject.SetValidValue Method (DateTimeOffset)

Makes sure the DateTimeOffset value being set for a property is valid.

protected internal static DateTimeOffset SetValidValue(
	DateTimeOffset value
)

Parameters

value
Type: System.DateTimeOffset

The DateTimeOffset value.

Return Value

Type: System.DateTimeOffset

A DateTimeOffset value being set.


StructuralObject.SetValidValue Method (DateTimeOffset, String)

Makes sure the DateTimeOffset value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static DateTimeOffset SetValidValue(
	DateTimeOffset value,
	string propertyName
)

Parameters

value
Type: System.DateTimeOffset

The DateTimeOffset value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.DateTimeOffset

The DateTimeOffset value being set.


StructuralObject.SetValidValue Method (DbGeography, Boolean)

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

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

Parameters

value
Type: System.Data.Entity.Spatial.DbGeography

DbGeography value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

The DbGeography value being set.

Exception Condition
ConstraintException

The value is null for a non-nullable property.


StructuralObject.SetValidValue Method (DbGeography, Boolean, String)

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

protected internal static DbGeography SetValidValue(
	DbGeography value,
	bool isNullable,
	string propertyName
)

Parameters

value
Type: System.Data.Entity.Spatial.DbGeography

The DbGeography value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

propertyName
Type: System.String

Name of the property that is being validated.

Return Value

Type: System.Data.Entity.Spatial.DbGeography

The DbGeography value being set.

Exception Condition
ConstraintException

The value is null for a non-nullable property.


StructuralObject.SetValidValue Method (DbGeometry, Boolean)

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

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

Parameters

value
Type: System.Data.Entity.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.Entity.Spatial.DbGeometry

The DbGeometry value being set.

Exception Condition
ConstraintException

The value is null for a non-nullable property.


StructuralObject.SetValidValue Method (DbGeometry, Boolean, String)

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

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

Parameters

value
Type: System.Data.Entity.Spatial.DbGeometry

DbGeometry value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Data.Entity.Spatial.DbGeometry

The DbGeometry value being set.

Exception Condition
ConstraintException

The value is null for a non-nullable property.


StructuralObject.SetValidValue Method (Decimal)

Makes sure the Decimal value being set for a property is valid.

protected internal static decimal SetValidValue(
	decimal value
)

Parameters

value
Type: System.Decimal

The Decimal value.

Return Value

Type: System.Decimal

The Decimal value being set.


StructuralObject.SetValidValue Method (Decimal, String)

Makes sure the Decimal value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static decimal SetValidValue(
	decimal value,
	string propertyName
)

Parameters

value
Type: System.Decimal

The Decimal value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Decimal

The Decimal value being set.


StructuralObject.SetValidValue Method (Double)

Makes sure the Double value being set for a property is valid.

protected internal static double SetValidValue(
	double value
)

Parameters

value
Type: System.Double

The Double value.

Return Value

Type: System.Double

The Double value being set.


StructuralObject.SetValidValue Method (Double, String)

Makes sure the Double value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static double SetValidValue(
	double value,
	string propertyName
)

Parameters

value
Type: System.Double

The Double value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Double

The Double value being set.


StructuralObject.SetValidValue Method (Guid)

Makes sure the Guid value being set for a property is valid.

protected internal static Guid SetValidValue(
	Guid value
)

Parameters

value
Type: System.Guid

The Guid value.

Return Value

Type: System.Guid

The Guid value being set.


StructuralObject.SetValidValue Method (Guid, String)

Makes sure the Guid value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Guid SetValidValue(
	Guid value,
	string propertyName
)

Parameters

value
Type: System.Guid

The Guid value.

propertyName
Type: System.String

Name of the property that is being validated.

Return Value

Type: System.Guid

The Guid value being set.


StructuralObject.SetValidValue Method (Int16)

Makes sure the Int16 value being set for a property is valid.

protected internal static short SetValidValue(
	short value
)

Parameters

value
Type: System.Int16

The Int16 value.

Return Value

Type: System.Int16

The Int16 value being set.


StructuralObject.SetValidValue Method (Int16, String)

Makes sure the Int16 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static short SetValidValue(
	short value,
	string propertyName
)

Parameters

value
Type: System.Int16

The Int16 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Int16

The Int16 value being set.


StructuralObject.SetValidValue Method (Int32)

Makes sure the Int32 value being set for a property is valid.

protected internal static int SetValidValue(
	int value
)

Parameters

value
Type: System.Int32

The Int32 value.

Return Value

Type: System.Int32

The Int32 value being set.


StructuralObject.SetValidValue Method (Int32, String)

Makes sure the Int32 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static int SetValidValue(
	int value,
	string propertyName
)

Parameters

value
Type: System.Int32

The Int32 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Int32

The Int32 value being set.


StructuralObject.SetValidValue Method (Int64)

Makes sure the Int64 value being set for a property is valid.

protected internal static long SetValidValue(
	long value
)

Parameters

value
Type: System.Int64

The Int64 value.

Return Value

Type: System.Int64

The Int64 value being set.


StructuralObject.SetValidValue Method (Int64, String)

Makes sure the Int64 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static long SetValidValue(
	long value,
	string propertyName
)

Parameters

value
Type: System.Int64

The Int64 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Int64

The Int64 value being set.


StructuralObject.SetValidValue Method (Nullable<Boolean>)

Makes sure the Boolean value being set for a property is valid.

protected internal static Nullable<bool> SetValidValue(
	Nullable<bool> value
)

Parameters

value
Type: System.Nullable<Boolean>

The nullable Boolean value.

Return Value

Type: System.Nullable<Boolean>

The nullable Boolean value being set.


StructuralObject.SetValidValue Method (Nullable<Boolean>, String)

Makes sure the Boolean value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<bool> SetValidValue(
	Nullable<bool> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Boolean>

The nullable Boolean value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Boolean>

The nullable Boolean value being set.


StructuralObject.SetValidValue Method (Nullable<Byte>)

Makes sure the Byte value being set for a property is valid.

protected internal static Nullable<byte> SetValidValue(
	Nullable<byte> value
)

Parameters

value
Type: System.Nullable<Byte>

The nullable Byte value.

Return Value

Type: System.Nullable<Byte>

The nullable Byte value being set.


StructuralObject.SetValidValue Method (Nullable<Byte>, String)

Makes sure the Byte value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<byte> SetValidValue(
	Nullable<byte> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Byte>

The nullable Byte value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Byte>

The nullable Byte value being set.


StructuralObject.SetValidValue Method (Nullable<DateTime>)

Makes sure the DateTime value being set for a property is valid.

protected internal static Nullable<DateTime> SetValidValue(
	Nullable<DateTime> value
)

Parameters

value
Type: System.Nullable<DateTime>

The nullable DateTime value.

Return Value

Type: System.Nullable<DateTime>

The nullable DateTime value being set.


StructuralObject.SetValidValue Method (Nullable<DateTime>, String)

Makes sure the DateTime value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<DateTime> SetValidValue(
	Nullable<DateTime> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<DateTime>

The nullable DateTime value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<DateTime>

The nullable DateTime value being set.


StructuralObject.SetValidValue Method (Nullable<DateTimeOffset>)

Makes sure the DateTimeOffset value being set for a property is valid.

protected internal static Nullable<DateTimeOffset> SetValidValue(
	Nullable<DateTimeOffset> value
)

Parameters

value
Type: System.Nullable<DateTimeOffset>

The nullable DateTimeOffset value.

Return Value

Type: System.Nullable<DateTimeOffset>

The nullable DateTimeOffset value being set.


StructuralObject.SetValidValue Method (Nullable<DateTimeOffset>, String)

Makes sure the DateTimeOffset value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<DateTimeOffset> SetValidValue(
	Nullable<DateTimeOffset> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<DateTimeOffset>

The DateTimeOffset value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<DateTimeOffset>

The DateTimeOffset value being set.


StructuralObject.SetValidValue Method (Nullable<Decimal>)

Makes sure the Decimal value being set for a property is valid.

protected internal static Nullable<decimal> SetValidValue(
	Nullable<decimal> value
)

Parameters

value
Type: System.Nullable<Decimal>

The nullable Decimal value.

Return Value

Type: System.Nullable<Decimal>

The nullable Decimal value being set.


StructuralObject.SetValidValue Method (Nullable<Decimal>, String)

Makes sure the Decimal value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<decimal> SetValidValue(
	Nullable<decimal> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Decimal>

The nullable Decimal value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Decimal>

The nullable Decimal value being set.


StructuralObject.SetValidValue Method (Nullable<Double>)

Makes sure the Double value being set for a property is valid.

protected internal static Nullable<double> SetValidValue(
	Nullable<double> value
)

Parameters

value
Type: System.Nullable<Double>

The nullable Double value.

Return Value

Type: System.Nullable<Double>

The nullable Double value being set.


StructuralObject.SetValidValue Method (Nullable<Double>, String)

Makes sure the Double value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<double> SetValidValue(
	Nullable<double> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Double>

The nullable Double value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Double>

The nullable Double value being set.


StructuralObject.SetValidValue Method (Nullable<Guid>)

Makes sure the Guid value being set for a property is valid.

protected internal static Nullable<Guid> SetValidValue(
	Nullable<Guid> value
)

Parameters

value
Type: System.Nullable<Guid>

The nullable Guid value.

Return Value

Type: System.Nullable<Guid>

The nullable Guid value being set.


StructuralObject.SetValidValue Method (Nullable<Guid>, String)

Makes sure the Guid value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<Guid> SetValidValue(
	Nullable<Guid> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Guid>

The nullable Guid value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Guid>

The nullable Guid value being set.


StructuralObject.SetValidValue Method (Nullable<Int16>)

Makes sure the Int16 value being set for a property is valid.

protected internal static Nullable<short> SetValidValue(
	Nullable<short> value
)

Parameters

value
Type: System.Nullable<Int16>

The nullable Int16 value.

Return Value

Type: System.Nullable<Int16>

The nullable Int16 value being set.


StructuralObject.SetValidValue Method (Nullable<Int16>, String)

Makes sure the Int16 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<short> SetValidValue(
	Nullable<short> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Int16>

The nullable Int16 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Int16>

The nullable Int16 value being set.


StructuralObject.SetValidValue Method (Nullable<Int32>)

Makes sure the Int32 value being set for a property is valid.

protected internal static Nullable<int> SetValidValue(
	Nullable<int> value
)

Parameters

value
Type: System.Nullable<Int32>

The nullable Int32 value.

Return Value

Type: System.Nullable<Int32>

The nullable Int32 value being set.


StructuralObject.SetValidValue Method (Nullable<Int32>, String)

Makes sure the Int32 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<int> SetValidValue(
	Nullable<int> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Int32>

The nullable Int32 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Int32>

The nullable Int32 value being set.


StructuralObject.SetValidValue Method (Nullable<Int64>)

Makes sure the Int64 value being set for a property is valid.

protected internal static Nullable<long> SetValidValue(
	Nullable<long> value
)

Parameters

value
Type: System.Nullable<Int64>

The nullable Int64 value.

Return Value

Type: System.Nullable<Int64>

The nullable Int64 value being set.


StructuralObject.SetValidValue Method (Nullable<Int64>, String)

Makes sure the Int64 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<long> SetValidValue(
	Nullable<long> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Int64>

The nullable Int64 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Int64>

The nullable Int64 value being set.


StructuralObject.SetValidValue Method (Nullable<SByte>)

Makes sure the SByte value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static Nullable<sbyte> SetValidValue(
	Nullable<sbyte> value
)

Parameters

value
Type: System.Nullable<SByte>

The nullable SByte value.

Return Value

Type: System.Nullable<SByte>

The nullable SByte value being set.


StructuralObject.SetValidValue Method (Nullable<SByte>, String)

Makes sure the SByte value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static Nullable<sbyte> SetValidValue(
	Nullable<sbyte> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<SByte>

The nullable SByte value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<SByte>

The nullable SByte value being set.


StructuralObject.SetValidValue Method (Nullable<Single>)

Makes sure the Single value being set for a property is valid.

protected internal static Nullable<float> SetValidValue(
	Nullable<float> value
)

Parameters

value
Type: System.Nullable<Single>

The nullable Single value.

Return Value

Type: System.Nullable<Single>

The nullable Single value being set.


StructuralObject.SetValidValue Method (Nullable<Single>, String)

Makes sure the Single value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<float> SetValidValue(
	Nullable<float> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<Single>

The nullable Single value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<Single>

The nullable Single value being set.


StructuralObject.SetValidValue Method (Nullable<TimeSpan>)

Makes sure the TimeSpan value being set for a property is valid.

protected internal static Nullable<TimeSpan> SetValidValue(
	Nullable<TimeSpan> value
)

Parameters

value
Type: System.Nullable<TimeSpan>

The nullable TimeSpan value.

Return Value

Type: System.Nullable<TimeSpan>

The nullable TimeSpan value being set.


StructuralObject.SetValidValue Method (Nullable<TimeSpan>, String)

Makes sure the TimeSpan value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<TimeSpan> SetValidValue(
	Nullable<TimeSpan> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<TimeSpan>

The nullable TimeSpan value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<TimeSpan>

The nullable TimeSpan value being set.


StructuralObject.SetValidValue Method (Nullable<UInt16>)

Makes sure the UInt16 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static Nullable<ushort> SetValidValue(
	Nullable<ushort> value
)

Parameters

value
Type: System.Nullable<UInt16>

The nullable UInt16 value.

Return Value

Type: System.Nullable<UInt16>

The nullable UInt16 value being set.


StructuralObject.SetValidValue Method (Nullable<UInt16>, String)

Makes sure the UInt16 value being set for a property is valid.

[CLSCompliantAttribute(false)]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static Nullable<ushort> SetValidValue(
	Nullable<ushort> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<UInt16>

The nullable UInt16 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<UInt16>

The nullable UInt16 value being set.


StructuralObject.SetValidValue Method (Nullable<UInt32>)

Makes sure the UInt32 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static Nullable<uint> SetValidValue(
	Nullable<uint> value
)

Parameters

value
Type: System.Nullable<UInt32>

The nullable UInt32 value.

Return Value

Type: System.Nullable<UInt32>

The nullable UInt32 value being set.


StructuralObject.SetValidValue Method (Nullable<UInt32>, String)

Makes sure the UInt32 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static Nullable<uint> SetValidValue(
	Nullable<uint> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<UInt32>

The nullable UInt32 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<UInt32>

The nullable UInt32 value being set.


StructuralObject.SetValidValue Method (Nullable<UInt64>)

Makes sure the UInt64 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static Nullable<ulong> SetValidValue(
	Nullable<ulong> value
)

Parameters

value
Type: System.Nullable<UInt64>

The nullable UInt64 value.

Return Value

Type: System.Nullable<UInt64>

The nullable UInt64 value being set.


StructuralObject.SetValidValue Method (Nullable<UInt64>, String)

Makes sure the UInt64 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static Nullable<ulong> SetValidValue(
	Nullable<ulong> value,
	string propertyName
)

Parameters

value
Type: System.Nullable<UInt64>

The nullable UInt64 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Nullable<UInt64>

The nullable UInt64 value being set.


StructuralObject.SetValidValue Method (SByte)

Makes sure the SByte value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static sbyte SetValidValue(
	sbyte value
)

Parameters

value
Type: System.SByte

The SByte value.

Return Value

Type: System.SByte

The SByte value being set.


StructuralObject.SetValidValue Method (SByte, String)

Makes sure the SByte value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static sbyte SetValidValue(
	sbyte value,
	string propertyName
)

Parameters

value
Type: System.SByte

The SByte value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.SByte

The SByte value being set.


StructuralObject.SetValidValue Method (Single)

Makes sure the Single value being set for a property is valid.

protected internal static float SetValidValue(
	float value
)

Parameters

value
Type: System.Single

The Single value.

Return Value

Type: System.Single

The Single value being set.


StructuralObject.SetValidValue Method (Single, String)

Makes sure the Single value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static float SetValidValue(
	float value,
	string propertyName
)

Parameters

value
Type: System.Single

The Single value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.Single

The Single value being set.


StructuralObject.SetValidValue Method (String, Boolean)

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

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

Parameters

value
Type: System.String

The string value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

Return Value

Type: System.String

The validated String value.


StructuralObject.SetValidValue Method (String, Boolean, String)

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

protected internal static string SetValidValue(
	string value,
	bool isNullable,
	string propertyName
)

Parameters

value
Type: System.String

The string value to be checked.

isNullable
Type: System.Boolean

Flag indicating if this property is allowed to be null.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.String

The validated property.

Exception Condition
ConstraintException

The string value is null for a non-nullable string.


StructuralObject.SetValidValue Method (TimeSpan)

Makes sure the TimeSpan value being set for a property is valid.

protected internal static TimeSpan SetValidValue(
	TimeSpan value
)

Parameters

value
Type: System.TimeSpan

The TimeSpan value.

Return Value

Type: System.TimeSpan

The TimeSpan value being set.


StructuralObject.SetValidValue Method (TimeSpan, String)

Makes sure the TimeSpan value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
protected internal static TimeSpan SetValidValue(
	TimeSpan value,
	string propertyName
)

Parameters

value
Type: System.TimeSpan

The TimeSpan value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.TimeSpan

The TimeSpan value being set.


StructuralObject.SetValidValue Method (UInt16)

Makes sure the UInt16 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static ushort SetValidValue(
	ushort value
)

Parameters

value
Type: System.UInt16

The UInt16 value.

Return Value

Type: System.UInt16

The UInt16 value being set.


StructuralObject.SetValidValue Method (UInt16, String)

Makes sure the UInt16 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static ushort SetValidValue(
	ushort value,
	string propertyName
)

Parameters

value
Type: System.UInt16

The UInt16 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.UInt16

The UInt16 value being set.


StructuralObject.SetValidValue Method (UInt32)

Makes sure the UInt32 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static uint SetValidValue(
	uint value
)

Parameters

value
Type: System.UInt32

The UInt32 value.

Return Value

Type: System.UInt32

The UInt32 value being set.


StructuralObject.SetValidValue Method (UInt32, String)

Makes sure the UInt32 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static uint SetValidValue(
	uint value,
	string propertyName
)

Parameters

value
Type: System.UInt32

The UInt32 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.UInt32

The UInt32 value being set.


StructuralObject.SetValidValue Method (UInt64)

Makes sure the UInt64 value being set for a property is valid.

[CLSCompliantAttribute(false)]
protected internal static ulong SetValidValue(
	ulong value
)

Parameters

value
Type: System.UInt64

The UInt64 value.

Return Value

Type: System.UInt64

The UInt64 value being set.


StructuralObject.SetValidValue Method (UInt64, String)

Makes sure the UInt64 value being set for a property is valid.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "propertyName")]
[CLSCompliantAttribute(false)]
protected internal static ulong SetValidValue(
	ulong value,
	string propertyName
)

Parameters

value
Type: System.UInt64

The UInt64 value.

propertyName
Type: System.String

The name of the property that is being validated.

Return Value

Type: System.UInt64

The UInt64 value being set.


StructuralObject.SetValidValue<T> Method (T, T, String)

Sets a complex object for the specified property.

protected internal T SetValidValue<T>(
	T oldValue,
	T newValue,
	string property
)
where T : ComplexObject

Parameters

oldValue
Type: T

The original complex object for the property, if any.

newValue
Type: T

The complex object is being set.

property
Type: System.String

The complex property that is being set to the complex object.

Return Value

Type: T

A complex type that derives from complex object.

Type Parameters

T

The type of the object being replaced.