AIParameterNameAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定要用于参数的 AIFunction 架构名称。
public ref class AIParameterNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class AIParameterNameAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)]
public sealed class AIParameterNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)>]
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type AIParameterNameAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Parameter, AllowMultiple=false, Inherited=true)>]
type AIParameterNameAttribute = class
inherit Attribute
Public NotInheritable Class AIParameterNameAttribute
Inherits Attribute
- 继承
- 特性
注解
该名称是模型在向函数提供参数时看到的标识符,并使用该标识符。 默认情况下,这是从.NET元数据推断出来的。 应用此属性以使用不同的标识符。
构造函数
| 名称 | 说明 |
|---|---|
| AIParameterNameAttribute(String) |
初始化 AIParameterNameAttribute 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Name |
获取要用于参数的架构名称。 |