Skip to content

API Host AuroraParamAttribute

Liu.Yandong.Hanks edited this page Aug 27, 2026 · 1 revision

AuroraParamAttribute

为生成的 Datum 适配器设置单个 Core 参数的强制转换规则。

命名空间:AuroraScript.Hosting。类型:class。

返回 .NET 宿主 API 参考 · MatchLevel

概述

不能与 params 参数同时使用。

public static double SumExactCore(
    [AuroraParam(MatchLevel.Exact)] double a,
    [AuroraParam(MatchLevel.Exact)] double b)
    => a + b;

构造函数

AuroraParamAttribute(MatchLevel coercion)

字段

  • readonly MatchLevel Coercion

Clone this wiki locally