This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.MicrosoftTeams.
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
Name | Summary |
---|---|
Microsoft |
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 |
A collection of facts, displayed as key-value pairs.
|
markdown | Nullable |
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 |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|