System::DateTimeOffset::EqualsExact 方法

DateTimeOffset::EqualsExact(const DateTimeOffset&) const method

检查两个 DateTimeOffset 对象是否表示相同的时间点且具有相同的偏移量。

bool System::DateTimeOffset::EqualsExact(const DateTimeOffset &other) const
ParameterType描述
otherconst DateTimeOffset&用于比较的 Object

ReturnValue

如果当前对象与 other 完全相等则为 true,否则为 false。

另见

DateTimeOffset::EqualsExact(const SharedPtr<Object>&) const method

检查两个 DateTimeOffset 对象是否表示相同的时间点且具有相同的偏移量。

bool System::DateTimeOffset::EqualsExact(const SharedPtr<Object> &obj) const
ParameterType描述
objconst SharedPtr<Object>&用于比较的 Object

ReturnValue

如果当前对象与 obj 完全相等则为 true,否则为 false。

另见