DbEntityEntry.GetValidationResult メソッド
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
この DbEntityEntry インスタンスを検証して検証結果を返します。
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public Function GetValidationResult As DbEntityValidationResult
'使用
Dim instance As DbEntityEntry
Dim returnValue As DbEntityValidationResult
returnValue = instance.GetValidationResult()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public DbEntityValidationResult GetValidationResult()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
DbEntityValidationResult^ GetValidationResult()
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
member GetValidationResult : unit -> DbEntityValidationResult
public function GetValidationResult() : DbEntityValidationResult
戻り値
型 : System.Data.Entity.Validation.DbEntityValidationResult
エンティティの検証結果。ValidateEntity(DbEntityEntry, IDictionary<Object, Object>) メソッドがオーバーライドされた場合は null の可能性があります。