DateTime.LessThanOrEqual(DateTime, DateTime) Operatore
Definizione
public:
static bool operator <=(DateTime t1, DateTime t2);
public static bool operator <= (DateTime t1, DateTime t2);
static member ( <= ) : DateTime * DateTime -> bool
Public Shared Operator <= (t1 As DateTime, t2 As DateTime) As Boolean
Parametri
- t1
- DateTime
Primo oggetto da confrontare.The first object to compare.
- t2
- DateTime
Secondo oggetto da confrontare.The second object to compare.
Restituisce
true
se t1
è uguale o precedente a t2
; in caso contrario, false
.true
if t1
is the same as or earlier than t2
; otherwise, false
.
Commenti
L' LessThanOrEqual operatore determina la relazione tra due DateTime valori confrontando il numero di cicli.The LessThanOrEqual operator determines the relationship between two DateTime values by comparing their number of ticks. Prima DateTime di confrontare gli oggetti, verificare che gli oggetti rappresentino orari nello stesso fuso orario.Before comparing DateTime objects, make sure that the objects represent times in the same time zone. L'operazione può essere effettuata confrontando i valori della relativa proprietà Kind.You can do this by comparing the values of their Kind property.
Il metodo equivalente per questo operatore è DateTime.Compare(DateTime, DateTime)The equivalent method for this operator is DateTime.Compare(DateTime, DateTime)