Språk

AIParameterNameAttribute Klass

Definition

Anger det schemanamn som ska användas för en AIFunction parameter.

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
Arv
AIParameterNameAttribute
Attribut

Kommentarer

Namnet är den identifierare som en modell ser och använder när ett argument skickas till en funktion. Som standard härleds detta från .NET metadata. Använd det här attributet om du vill använda en annan identifierare.

Konstruktorer

Name Description
AIParameterNameAttribute(String)

Initierar en ny instans av AIParameterNameAttribute klassen.

Egenskaper

Name Description
Name

Hämtar schemanamnet som ska användas för parametern.

Gäller för