Interface ITeamChatMessageCollection
A chat is a collection of chatMessages between one or more participants. Participants can be users or apps.
Inherited Members
Namespace: PnP.Core.Model.Teams
Assembly: PnP.Core.dll
Syntax
public interface ITeamChatMessageCollection : IDataModelCollectionLoad<ITeamChatMessage>, IDataModelCollection<ITeamChatMessage>, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<ITeamChatMessageCollection>
Methods
Add(ChatMessageOptions)
Adds a new channel chat
Declaration
ITeamChatMessage Add(ChatMessageOptions options)
Parameters
ChatMessageOptions
options
Full chat message options |
Returns
ITeamChatMessage
|
Add(String, ChatMessageContentType, String)
Adds a new channel chat
Declaration
ITeamChatMessage Add(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
ITeamChatMessage
|
AddAsync(ChatMessageOptions)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddAsync(ChatMessageOptions options)
Parameters
ChatMessageOptions
options
Full chat message options |
Returns
Task<ITeamChatMessage>
|
AddAsync(String, ChatMessageContentType, String)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddAsync(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
Task<ITeamChatMessage>
|
AddBatch(ChatMessageOptions)
Adds a new channel chat message
Declaration
ITeamChatMessage AddBatch(ChatMessageOptions options)
Parameters
ChatMessageOptions
options
Full chat message options |
Returns
ITeamChatMessage
Newly added channel chat message |
AddBatch(Batch, ChatMessageOptions)
Adds a new channel chat message
Declaration
ITeamChatMessage AddBatch(Batch batch, ChatMessageOptions options)
Parameters
Batch
batch
Batch the message is associated with |
ChatMessageOptions
options
Full chat message options |
Returns
ITeamChatMessage
Newly added channel chat message |
AddBatch(Batch, String, ChatMessageContentType, String)
Adds a new channel chat message
Declaration
ITeamChatMessage AddBatch(Batch batch, string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
Batch
batch
Batch the message is associated with |
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
ITeamChatMessage
Newly added channel chat message |
AddBatch(String, ChatMessageContentType, String)
Adds a new channel chat message
Declaration
ITeamChatMessage AddBatch(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
ITeamChatMessage
Newly added channel chat message |
AddBatchAsync(ChatMessageOptions)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddBatchAsync(ChatMessageOptions options)
Parameters
ChatMessageOptions
options
Full chat message options |
Returns
Task<ITeamChatMessage>
Newly added channel chat message |
AddBatchAsync(Batch, ChatMessageOptions)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddBatchAsync(Batch batch, ChatMessageOptions options)
Parameters
Batch
batch
Batch the message is associated with |
ChatMessageOptions
options
Full chat message options |
Returns
Task<ITeamChatMessage>
Newly added channel chat message |
AddBatchAsync(Batch, String, ChatMessageContentType, String)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddBatchAsync(Batch batch, string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
Batch
batch
Batch the message is associated with |
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
Task<ITeamChatMessage>
Newly added channel chat message |
AddBatchAsync(String, ChatMessageContentType, String)
Adds a new channel chat message
Declaration
Task<ITeamChatMessage> AddBatchAsync(string content, ChatMessageContentType contentType = ChatMessageContentType.Text, string subject = null)
Parameters
System.String
content
Content of the message |
ChatMessageContentType
contentType
Message content type e.g. Text, Html |
System.String
subject
Message Subject |
Returns
Task<ITeamChatMessage>
Newly added channel chat message |