StructuralObject.VerifyComplexObjectIsNotNull<TComplex> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
驗證複雜物件是否不是 null
。
protected public:
generic <typename TComplex>
where TComplex : System::Data::Objects::DataClasses::ComplexObject static TComplex VerifyComplexObjectIsNotNull(TComplex complexObject, System::String ^ propertyName);
protected internal static TComplex VerifyComplexObjectIsNotNull<TComplex> (TComplex complexObject, string propertyName) where TComplex : System.Data.Objects.DataClasses.ComplexObject;
static member VerifyComplexObjectIsNotNull : 'Complex * string -> 'Complex (requires 'Complex :> System.Data.Objects.DataClasses.ComplexObject)
Protected Friend Shared Function VerifyComplexObjectIsNotNull(Of TComplex As ComplexObject) (complexObject As TComplex, propertyName As String) As TComplex
類型參數
- TComplex
所要驗證之複雜物件的型別。
參數
- complexObject
- TComplex
正在驗證的複雜物件。
- propertyName
- String
與 complexObject
相關聯之父物件的複雜屬性。
傳回
TComplex
正在驗證的複雜物件。
例外狀況
當複雜類型是 Null 時。