StructuralObject.SetValidValue Method
Makes sure the value being set for a property is valid.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | SetValidValue(Boolean) | Makes sure the Boolean value being set for a property is valid. |
![]() ![]() | SetValidValue(Boolean, String) | Makes sure the Boolean value being set for a property is valid. |
![]() ![]() | SetValidValue(Byte) | Makes sure the Byte value being set for a property is valid. |
![]() ![]() | SetValidValue(Byte, String) | Makes sure the Byte value being set for a property is valid. |
![]() ![]() | SetValidValue(Byte[], Boolean) | Makes sure the T:System.Byte[] value being set for a property is valid. |
![]() ![]() | SetValidValue(Byte[], Boolean, String) | Makes sure the T:System.Byte[] value being set for a property is valid. |
![]() ![]() | SetValidValue(DateTime) | Makes sure the DateTime value being set for a property is valid. |
![]() ![]() | SetValidValue(DateTime, String) | Makes sure the DateTime value being set for a property is valid. |
![]() ![]() | SetValidValue(DateTimeOffset) | Makes sure the DateTimeOffset value being set for a property is valid. |
![]() ![]() | SetValidValue(DateTimeOffset, String) | Makes sure the DateTimeOffset value being set for a property is valid. |
![]() ![]() | SetValidValue(DbGeography, Boolean) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(DbGeography, Boolean, String) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(DbGeometry, Boolean) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(DbGeometry, Boolean, String) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(Decimal) | Makes sure the Decimal value being set for a property is valid. |
![]() ![]() | SetValidValue(Decimal, String) | Makes sure the Decimal value being set for a property is valid. |
![]() ![]() | SetValidValue(Double) | Makes sure the Double value being set for a property is valid. |
![]() ![]() | SetValidValue(Double, String) | Makes sure the Double value being set for a property is valid. |
![]() ![]() | SetValidValue(Guid) | Makes sure the Guid value being set for a property is valid. |
![]() ![]() | SetValidValue(Guid, String) | Makes sure the Guid value being set for a property is valid. |
![]() ![]() | SetValidValue(Int16) | Makes sure the Int16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Int16, String) | Makes sure the Int16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Int32) | Makes sure the Int32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Int32, String) | Makes sure the Int32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Int64) | Makes sure the Int64 value being set for a property is valid. |
![]() ![]() | SetValidValue(Int64, String) | Makes sure the Int64 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Boolean>) | Makes sure the Boolean value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Boolean>, String) | Makes sure the Boolean value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Byte>) | Makes sure the Byte value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Byte>, String) | Makes sure the Byte value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<DateTime>) | Makes sure the DateTime value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<DateTime>, String) | Makes sure the DateTime value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<DateTimeOffset>) | Makes sure the DateTimeOffset value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<DateTimeOffset>, String) | Makes sure the DateTimeOffset value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Decimal>) | Makes sure the Decimal value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Decimal>, String) | Makes sure the Decimal value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Double>) | Makes sure the Double value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Double>, String) | Makes sure the Double value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Guid>) | Makes sure the Guid value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Guid>, String) | Makes sure the Guid value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int16>) | Makes sure the Int16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int16>, String) | Makes sure the Int16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int32>) | Makes sure the Int32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int32>, String) | Makes sure the Int32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int64>) | Makes sure the Int64 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Int64>, String) | Makes sure the Int64 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<SByte>) | Makes sure the SByte value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<SByte>, String) | Makes sure the SByte value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Single>) | Makes sure the Single value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<Single>, String) | Makes sure the Single value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<TimeSpan>) | Makes sure the TimeSpan value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<TimeSpan>, String) | Makes sure the TimeSpan value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt16>) | Makes sure the UInt16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt16>, String) | Makes sure the UInt16 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt32>) | Makes sure the UInt32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt32>, String) | Makes sure the UInt32 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt64>) | Makes sure the UInt64 value being set for a property is valid. |
![]() ![]() | SetValidValue(Nullable<UInt64>, String) | Makes sure the UInt64 value being set for a property is valid. |
![]() ![]() | SetValidValue(SByte) | Makes sure the SByte value being set for a property is valid. |
![]() ![]() | SetValidValue(SByte, String) | Makes sure the SByte value being set for a property is valid. |
![]() ![]() | SetValidValue(Single) | Makes sure the Single value being set for a property is valid. |
![]() ![]() | SetValidValue(Single, String) | Makes sure the Single value being set for a property is valid. |
![]() ![]() | SetValidValue(String, Boolean) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(String, Boolean, String) | Validates that the property is not null, and throws if it is. |
![]() ![]() | SetValidValue(TimeSpan) | Makes sure the TimeSpan value being set for a property is valid. |
![]() ![]() | SetValidValue(TimeSpan, String) | Makes sure the TimeSpan value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt16) | Makes sure the UInt16 value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt16, String) | Makes sure the UInt16 value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt32) | Makes sure the UInt32 value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt32, String) | Makes sure the UInt32 value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt64) | Makes sure the UInt64 value being set for a property is valid. |
![]() ![]() | SetValidValue(UInt64, String) | Makes sure the UInt64 value being set for a property is valid. |
![]() | SetValidValue<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.
Parameters
- value
-
Type:
System.Boolean
The Boolean value.
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.
StructuralObject.SetValidValue Method (Byte)
Makes sure the Byte value being set for a property is valid.
Parameters
- value
-
Type:
System.Byte
The value that is being validated.
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.
StructuralObject.SetValidValue Method (Byte[], Boolean)
Makes sure the T:System.Byte[] value being set for a property is valid.
Parameters
- value
-
Type:
System.Byte[]
The value being set.
- isNullable
-
Type:
System.Boolean
Indicates whether the property is nullable.
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.
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.
Parameters
- value
-
Type:
System.DateTime
The DateTime value.
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.
StructuralObject.SetValidValue Method (DateTimeOffset)
Makes sure the DateTimeOffset value being set for a property is valid.
Parameters
- value
-
Type:
System.DateTimeOffset
The DateTimeOffset value.
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.
StructuralObject.SetValidValue Method (DbGeography, Boolean)
Validates that the property is not null, and throws if it is.
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.
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.
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.
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.
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.
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.
Parameters
- value
-
Type:
System.Decimal
The Decimal value.
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.
StructuralObject.SetValidValue Method (Double)
Makes sure the Double value being set for a property is valid.
Parameters
- value
-
Type:
System.Double
The Double value.
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.
StructuralObject.SetValidValue Method (Guid)
Makes sure the Guid value being set for a property is valid.
Parameters
- value
-
Type:
System.Guid
The Guid value.
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.
StructuralObject.SetValidValue Method (Int16)
Makes sure the Int16 value being set for a property is valid.
Parameters
- value
-
Type:
System.Int16
The Int16 value.
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.
StructuralObject.SetValidValue Method (Int32)
Makes sure the Int32 value being set for a property is valid.
Parameters
- value
-
Type:
System.Int32
The Int32 value.
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.
StructuralObject.SetValidValue Method (Int64)
Makes sure the Int64 value being set for a property is valid.
Parameters
- value
-
Type:
System.Int64
The Int64 value.
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.
StructuralObject.SetValidValue Method (Nullable<Boolean>)
Makes sure the Boolean value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Boolean>
The nullable Boolean value.
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.
StructuralObject.SetValidValue Method (Nullable<Byte>)
Makes sure the Byte value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Byte>
The nullable Byte value.
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.
StructuralObject.SetValidValue Method (Nullable<DateTime>)
Makes sure the DateTime value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<DateTime>
The nullable DateTime value.
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.
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.
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.
StructuralObject.SetValidValue Method (Nullable<Decimal>)
Makes sure the Decimal value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Decimal>
The nullable Decimal value.
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.
StructuralObject.SetValidValue Method (Nullable<Double>)
Makes sure the Double value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Double>
The nullable Double value.
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.
StructuralObject.SetValidValue Method (Nullable<Guid>)
Makes sure the Guid value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Guid>
The nullable Guid value.
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.
StructuralObject.SetValidValue Method (Nullable<Int16>)
Makes sure the Int16 value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Int16>
The nullable Int16 value.
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.
StructuralObject.SetValidValue Method (Nullable<Int32>)
Makes sure the Int32 value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Int32>
The nullable Int32 value.
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.
StructuralObject.SetValidValue Method (Nullable<Int64>)
Makes sure the Int64 value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Int64>
The nullable Int64 value.
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.
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.
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.
StructuralObject.SetValidValue Method (Nullable<Single>)
Makes sure the Single value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<Single>
The nullable Single value.
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.
StructuralObject.SetValidValue Method (Nullable<TimeSpan>)
Makes sure the TimeSpan value being set for a property is valid.
Parameters
- value
-
Type:
System.Nullable<TimeSpan>
The nullable TimeSpan value.
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.
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.
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.
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.
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.
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.
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.
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.
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.
StructuralObject.SetValidValue Method (Single)
Makes sure the Single value being set for a property is valid.
Parameters
- value
-
Type:
System.Single
The Single value.
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.
StructuralObject.SetValidValue Method (String, Boolean)
Validates that the property is not null, and throws if it is.
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.
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.
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.
Parameters
- value
-
Type:
System.TimeSpan
The TimeSpan value.
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.
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.
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.
StructuralObject.SetValidValue Method (UInt32)
Makes sure the UInt32 value being set for a property is valid.
Parameters
- value
-
Type:
System.UInt32
The UInt32 value.
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.
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.
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.
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.
Type Parameters
- T
The type of the object being replaced.