System::TimeZoneInfo::AdjustmentRule 类

AdjustmentRule class

提供有关时区调整的信息。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class AdjustmentRule : public System::IEquatable<AdjustmentRulePtr>

方法

方法描述
static CreateAdjustmentRule(DateTime, DateTime, TimeSpan, const TransitionTime&, const TransitionTime&)构造一个 AdjustmentRule 类的实例,该实例表示使用指定参数描述的时间调整规则。
static CreateAdjustmentRule(DateTime, DateTime, TimeSpan, const TransitionTime&, const TransitionTime&, TimeSpan, bool)构造一个 AdjustmentRule 类的实例,该实例表示使用指定参数描述的时间调整规则。
Equals(AdjustmentRulePtr) override
get_BaseUtcOffsetDelta() const返回相对于默认 UTC 偏移量的增量。
get_DateEnd() const返回一个 DateTime 对象,表示调整规则失效的日期和时间。
get_DateStart() const返回一个 DateTime 对象,表示调整规则生效的日期和时间。
get_DaylightDelta() const返回一个 TimeSpan 对象,表示时区形成夏令时所需的时间量。
get_DaylightTransitionEnd() const返回关于从标准时间到夏令时的转换信息。
get_DaylightTransitionStart() const返回关于从夏令时到标准时间的转换信息。
get_HasDaylightSaving() const仅供内部使用。
GetHashCode() const overrideC# 中 Object.GetHashCode() 方法的类似实现。启用自定义对象的哈希功能。

另见