DateTime.op_Equality メソッド
DateTime の 2 つの指定したインスタンスが等しいかどうかを判断します。
名前空間: System
アセンブリ: mscorlib (mscorlib.dll 内)
構文

Dim april19 As New DateTime(2001, 4, 19) Dim otherDate As New DateTime(1991, 6, 5) Dim areEqual As Boolean ' areEqual gets false. areEqual = System.DateTime.op_Equality(april19, otherDate) otherDate = New DateTime(2001, 4, 19) ' areEqual gets true. areEqual = System.DateTime.op_Equality(april19, otherDate)
System.DateTime april19 = new DateTime(2001, 4, 19); System.DateTime otherDate = new DateTime(1991, 6, 5); // areEqual gets false. bool areEqual = april19 == otherDate; otherDate = new DateTime(2001, 4, 19); // areEqual gets true. areEqual = april19 == otherDate;

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DateTime.op_Equality メソッドのページへのリンク