Share via


ButtonContent Class

Definition

The message content of type Button information.

public class ButtonContent : System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.ButtonContent>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.ButtonContent>
type ButtonContent = class
    interface IJsonModel<ButtonContent>
    interface IPersistableModel<ButtonContent>
Public Class ButtonContent
Implements IJsonModel(Of ButtonContent), IPersistableModel(Of ButtonContent)
Inheritance
ButtonContent
Implements

Constructors

Name Description
ButtonContent(String, String)

Initializes a new instance of ButtonContent.

Properties

Name Description
Id

Unique Id of the button content.

Title

Title of the button content.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ButtonContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ButtonContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ButtonContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ButtonContent>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ButtonContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to