StructuralObject.GetValidValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| GetValidValue(Byte[]) |
回傳目前位元組值的副本。 |
| GetValidValue<T>(T, String, Boolean, Boolean) |
會回傳指定屬性的複數型別。 |
GetValidValue(Byte[])
回傳目前位元組值的副本。
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()
參數
- currentValue
- Byte[]
目前的位元組陣列值。
傳回
Byte[]
一份當前 Byte 價值的副本。
適用於
GetValidValue<T>(T, String, Boolean, Boolean)
會回傳指定屬性的複數型別。
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
類型參數
- T
請求的複雜物件類型。
參數
- currentValue
- T
一個繼承自複雜物件的複雜物件。
- property
- String
複數性質的名稱,即複物件。
- isNullable
- Boolean
表示該型別是否支援空值。
- isInitialized
- Boolean
表示該型別是否已初始化。
傳回
T
一個複雜型態物件。