ภาษา

BasicCard.AddButton Method

Definition

Overloads

Name Description
AddButton(CardAction)

Adds a button and returns this card.

AddButton(String, String, Object)

Adds a button by title/type/value and returns this card.

AddButton(CardAction)

Adds a button and returns this card.

public Microsoft.Agents.Core.Models.BasicCard AddButton(Microsoft.Agents.Core.Models.CardAction button);
member this.AddButton : Microsoft.Agents.Core.Models.CardAction -> Microsoft.Agents.Core.Models.BasicCard
Public Function AddButton (button As CardAction) As BasicCard

Parameters

button
CardAction

Returns

Applies to

AddButton(String, String, Object)

Adds a button by title/type/value and returns this card.

public Microsoft.Agents.Core.Models.BasicCard AddButton(string title, string type = "imBack", object value = default);
member this.AddButton : string * string * obj -> Microsoft.Agents.Core.Models.BasicCard
Public Function AddButton (title As String, Optional type As String = "imBack", Optional value As Object = Nothing) As BasicCard

Parameters

title
String
type
String
value
Object

Returns

Applies to