Share via


StructuralObject.GetValidValue Method

Definition

Overloads

GetValidValue(Byte[])

Returns a copy of the current byte value.

GetValidValue<T>(T, String, Boolean, Boolean)

Returns a complex type for the specified property.

GetValidValue(Byte[])

Returns a copy of the current byte value.

protected internal static byte[] GetValidValue (byte[] currentValue);
static member GetValidValue : byte[] -> byte[]
Protected Friend Shared Function GetValidValue (currentValue As Byte()) As Byte()

Parameters

currentValue
Byte[]

The current byte array value.

Returns

Byte[]

A copy of the current Byte value.

Applies to

GetValidValue<T>(T, String, Boolean, Boolean)

Returns a complex type for the specified property.

protected internal T GetValidValue<T> (T currentValue, string property, bool isNullable, bool isInitialized) where T : System.Data.Entity.Core.Objects.DataClasses.ComplexObjectnew();
member this.GetValidValue : 'T * string * bool * bool -> 'T (requires 'T :> System.Data.Entity.Core.Objects.DataClasses.ComplexObject and 'T : (new : unit -> 'T))
Protected Friend Function GetValidValue(Of T As {ComplexObjectNew}) (currentValue As T, property As String, isNullable As Boolean, isInitialized As Boolean) As T

Type Parameters

T

The type of the complex object being requested.

Parameters

currentValue
T

A complex object that inherits from complex object.

property
String

The name of the complex property that is the complex object.

isNullable
Boolean

Indicates whether the type supports null values.

isInitialized
Boolean

Indicates whether the type is initialized.

Returns

T

A complex type object for the property.

Remarks

Unlike most of the other helper methods in this class, this one is not static because it references the SetValidValue for complex objects, which is also not static because it needs a reference to this.

Applies to