ResourceCommandAnnotation Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- updateState
- Func<UpdateCommandStateContext,ResourceCommandState>
- executeCommand
- Func<ExecuteCommandContext,Task<ExecuteCommandResult>>
- displayDescription
- String
- parameter
- Object
- confirmationMessage
- String
- iconName
- String
- iconVariant
- Nullable<IconVariant>
- isHighlighted
- Boolean