语言

AIFunctionNameAttribute 类

定义

指定要用于 . AIFunction. 的名称。

public ref class AIFunctionNameAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class AIFunctionNameAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class AIFunctionNameAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type AIFunctionNameAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type AIFunctionNameAttribute = class
    inherit Attribute
Public NotInheritable Class AIFunctionNameAttribute
Inherits Attribute
继承
AIFunctionNameAttribute
属性

注解

该名称是模型查看的标识符,用于调用函数。 默认情况下,这是从.NET元数据推断出来的。 应用此属性以使用不同的标识符。

构造函数

名称 说明
AIFunctionNameAttribute(String)

初始化 AIFunctionNameAttribute 类的新实例。

属性

名称 说明
Name

获取要用于函数的名称。

适用于