StructuralObject.GetValidValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
Entity Framework