TeamsAttachmentBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a fluent API for creating TeamsAttachment instances.
public class TeamsAttachmentBuilder
type TeamsAttachmentBuilder = class
Public Class TeamsAttachmentBuilder
- Inheritance
-
TeamsAttachmentBuilder
Methods
| Name | Description |
|---|---|
| Build() |
Builds the attachment. |
| WithAdaptiveCard(Object) |
Configures the attachment to contain an Adaptive Card payload. |
| WithContent(Object) |
Sets the payload for the attachment. |
| WithContentType(AttachmentContentType) |
Sets the content type for the attachment. See AttachmentContentTypes for known values. |
| WithContentUrl(Uri) |
Sets the content url for the attachment. |
| WithName(String) |
Sets the friendly name for the attachment. |
| WithProperty(String, Object) |
Adds or updates an extension property on the attachment. Passing a null value removes the property. |
| WithThumbnailUrl(Uri) |
Sets the thumbnail url for the attachment. |