Skip to content

API Host HotPatchType

Liu.Yandong.Hanks edited this page Aug 19, 2026 · 3 revisions

HotPatchType

控制动态补丁行为的标志枚举。

Flags controlling dynamic patch behavior.

命名空间:AuroraScript.Core。类型:enum。

Namespace: AuroraScript.Core. Kind: enum.

返回 .NET Host API 参考

Back to .NET Host API Reference

用途

Purpose

HotPatchType 是公开宿主类型。通过下方签名选择调用方式;对运行时对象、生命周期和异常,应由宿主在边界处明确处理。

Flags controlling dynamic patch behavior.

枚举值

Enumeration Values

HotPatchType.Replace

用补丁内容替换目标模块的全部成员。

Replaces all members of the target module with patch content.

简单示例

var value = HotPatchType.Replace;

HotPatchType.Incremental

添加新成员并更新同名已有成员。

Adds new members and updates existing members with matching names.

简单示例

var value = HotPatchType.Incremental;

HotPatchType.IgnoreDepends

在导入模块已加载时忽略依赖更新。

Ignores dependency updates when imported modules are already loaded.

简单示例

var value = HotPatchType.IgnoreDepends;

Clone this wiki locally