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 public:
static cli::array <System::Byte> ^ GetValidValue(cli::array <System::Byte> ^ currentValue);
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 public:
generic <typename T>
where T : System::Data::Objects::DataClasses::ComplexObjectgcnew() T GetValidValue(T currentValue, System::String ^ property, bool isNullable, bool isInitialized);
protected internal T GetValidValue<T> (T currentValue, string property, bool isNullable, bool isInitialized) where T : System.Data.Objects.DataClasses.ComplexObject, new();
member this.GetValidValue : 'T * string * bool * bool -> 'T (requires 'T :> System.Data.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.