Freigeben über


ResourceCommandAnnotation Constructor

Definition

Initializes a new instance of the ResourceCommandAnnotation class.

public ResourceCommandAnnotation (string name, string displayName, Func<Aspire.Hosting.ApplicationModel.UpdateCommandStateContext,Aspire.Hosting.ApplicationModel.ResourceCommandState> updateState, Func<Aspire.Hosting.ApplicationModel.ExecuteCommandContext,System.Threading.Tasks.Task<Aspire.Hosting.ApplicationModel.ExecuteCommandResult>> executeCommand, string? displayDescription, object? parameter, string? confirmationMessage, string? iconName, Aspire.Hosting.ApplicationModel.IconVariant? iconVariant, bool isHighlighted);
new Aspire.Hosting.ApplicationModel.ResourceCommandAnnotation : string * string * Func<Aspire.Hosting.ApplicationModel.UpdateCommandStateContext, Aspire.Hosting.ApplicationModel.ResourceCommandState> * Func<Aspire.Hosting.ApplicationModel.ExecuteCommandContext, System.Threading.Tasks.Task<Aspire.Hosting.ApplicationModel.ExecuteCommandResult>> * string * obj * string * string * Nullable<Aspire.Hosting.ApplicationModel.IconVariant> * bool -> Aspire.Hosting.ApplicationModel.ResourceCommandAnnotation
Public Sub New (name As String, displayName As String, updateState As Func(Of UpdateCommandStateContext, ResourceCommandState), executeCommand As Func(Of ExecuteCommandContext, Task(Of ExecuteCommandResult)), displayDescription As String, parameter As Object, confirmationMessage As String, iconName As String, iconVariant As Nullable(Of IconVariant), isHighlighted As Boolean)

Parameters

name
String
displayName
String
displayDescription
String
parameter
Object
confirmationMessage
String
iconName
String
iconVariant
Nullable<IconVariant>
isHighlighted
Boolean

Applies to