StructuralObject.VerifyComplexObjectIsNotNull<TComplex> Metodo

Definizione

Verifica che un oggetto complesso non sia 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

Parametri di tipo

TComplex

Tipo dell'oggetto complesso da verificare.

Parametri

complexObject
TComplex

Oggetto complesso da convalidare.

propertyName
String

Proprietà complessa nell'oggetto padre associato a complexObject.

Restituisce

TComplex

Oggetto complesso da convalidare.

Eccezioni

Quando il tipo complesso è Null.

Si applica a