共用方式為


StructuralObject.VerifyComplexObjectIsNotNull<TComplex> 方法

定義

驗證複雜物件是否不是 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 時。

適用於