MicrosoftTeamsMessageSection Class

Summary

A section is a canvas to show richer content than what can be represented in the just the title and text of the card. A section can contain text and images, or the activity and facts fields can be used to highlight key events and details. These sections are passed via the sections array in the payload, and will be rendered in the order of array position. The content in a section is displayed in the following order(top to bottom): * title * text * activityTitle, activitySubtitle, activityText * facts * images * actions
Assembly
Cake.MicrosoftTeams.dll
Namespace
Cake.MicrosoftTeams
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["MicrosoftTeamsMessageSection"] class Type type-node

Syntax

public sealed class MicrosoftTeamsMessageSection

Constructors

Properties

Name Value Summary
activityImage string
An image representing the action. Often this is an avatar of the "actor" of the activity.
activitySubtitle string
A subtitle describing the event or action. Often this will be a summary of the action.
activityText string
A full description of the action.
activityTitle string
Title of the event or action. Often this will be the name of the "actor".
facts ICollection<MicrosoftTeamsMessageFacts>
A collection of facts, displayed as key-value pairs.
markdown Nullable<bool>
Set this to false to disable markdown parsing on this section's content. Markdown parsing is enabled by default.
text string
Optional text that will appear before the activity.
title string
Title of the section.

Extension Methods

Name Value Summary
Dump<MicrosoftTeamsMessageSection>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<MicrosoftTeamsMessageSection>(MicrosoftTeamsMessageSection[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<MicrosoftTeamsMessageSection>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<MicrosoftTeamsMessageSection>(string) void
Requires the Cake.Issues addin
ThrowIfNull<MicrosoftTeamsMessageSection>(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<MicrosoftTeamsMessageSection>(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
ToStringWithNullMarkup() string
Requires the Cake.Issues addin