MicrosoftTeamsMessageCard Class

Summary

Message structure used by MicrosoftTeamsAliases.
Assembly
Cake.MicrosoftTeams.dll
Namespace
Cake.MicrosoftTeams
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["MicrosoftTeamsMessageCard"] class Type type-node

Syntax

public sealed class MicrosoftTeamsMessageCard

Constructors

Properties

Name Value Summary
potentialAction ICollection<MicrosoftTeamsMessagePotentialAction>
Contains a list of actions to display in the card.
sections ICollection<MicrosoftTeamsMessageSection>
Contains a list of sections to display in the card.
summary string
A string used for summarizing card content. This will be shown as the message subject. This is required if the text parameter isn't populated.
text string
The main text of the card. This will be rendered below the sender information and optional title, and above any sections or actions present.
themeColor string
Specifies a custom brand color for the card. The color will be displayed in a non-obtrusive manner.
title string
A title for the Connector message. Shown at the top of the message.

Methods

Name Value Summary
ToString() string
Converts MicrosoftTeamsMessageCard to an string representation.

Extension Methods

Name Value Summary
Dump<MicrosoftTeamsMessageCard>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MicrosoftTeamsMessageCard>(MicrosoftTeamsMessageCard[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<MicrosoftTeamsMessageCard>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<MicrosoftTeamsMessageCard>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<MicrosoftTeamsMessageCard>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<MicrosoftTeamsMessageCard>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin