共用方式為


StructuralObject.GetValidValue 方法

定義

多載

GetValidValue(Byte[])

傳回目前位元組值的複本。

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

傳回指定之屬性的複雜類型。

GetValidValue(Byte[])

傳回目前位元組值的複本。

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

參數

currentValue
Byte[]

目前的位元組陣列值。

傳回

Byte[]

目前 Byte 值的複本。

適用於

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

傳回指定之屬性的複雜類型。

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

類型參數

T

所要求之複雜物件的型別。

參數

currentValue
T

繼承自複雜物件的複雜物件。

property
String

屬於複雜物件的複雜屬性名稱。

isNullable
Boolean

指出此類型是否支援 null 值。

isInitialized
Boolean

指出型別是否已初始化。

傳回

T

屬性的複雜類型物件。

備註

不同于這個類別中大部分的其他協助程式方法,這個方法不是靜態的,因為它會參考複雜物件的 SetValidValue,這也不是靜態的,因為它需要這個的參考。

適用於