Interface ITeamChannelCollection
Public interface to define a collection of Team Channels
Inherited Members
Namespace: PnP.Core.Model.Teams
Assembly: PnP.Core.dll
Syntax
public interface ITeamChannelCollection : IDataModelCollection<ITeamChannel>, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<ITeamChannel>, IDataModelCollectionDeleteByStringId, ISupportModules<ITeamChannelCollection>
Methods
Add(String, TeamChannelOptions)
Adds a new channel
Declaration
ITeamChannel Add(string name, TeamChannelOptions options)
Parameters
System. Display name of the channel |
Team Options for creating the channel |
Returns
ITeam Newly added channel |
Add(String, String)
Adds a new channel
Declaration
ITeamChannel Add(string name, string description = null)
Parameters
System. Display name of the channel |
System. Optional description of the channel |
Returns
ITeam Newly added channel |
AddAsync(String, TeamChannelOptions)
Adds a new channel
Declaration
Task<ITeamChannel> AddAsync(string name, TeamChannelOptions options)
Parameters
System. Display name of the channel |
Team Options for creating the channel |
Returns
Task<ITeam Newly added channel |
AddAsync(String, String)
Adds a new channel
Declaration
Task<ITeamChannel> AddAsync(string name, string description = null)
Parameters
System. Display name of the channel |
System. Optional description of the channel |
Returns
Task<ITeam Newly added channel |
AddBatch(Batch, String, TeamChannelOptions)
Adds a new channel
Declaration
ITeamChannel AddBatch(Batch batch, string name, TeamChannelOptions options)
Parameters
Batch
batch
Batch to use |
System. Display name of the channel |
Team Options for creating the channel |
Returns
ITeam Newly added channel |
AddBatch(Batch, String, String)
Adds a new channel
Declaration
ITeamChannel AddBatch(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use |
System. Display name of the channel |
System. Optional description of the channel |
Returns
ITeam Newly added channel |
AddBatch(String, TeamChannelOptions)
Adds a new channel
Declaration
ITeamChannel AddBatch(string name, TeamChannelOptions options)
Parameters
System. Display name of the channel |
Team Options for creating the channel |
Returns
ITeam Newly added channel |
AddBatch(String, String)
Adds a new channel
Declaration
ITeamChannel AddBatch(string name, string description = null)
Parameters
System. Display name of the channel |
System. Optional description of the channel |
Returns
ITeam Newly added channel |
AddBatchAsync(Batch, String, TeamChannelOptions)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(Batch batch, string name, TeamChannelOptions options)
Parameters
Batch
batch
Batch to use |
System. Display name of the channel |
Team Options for creating the channel |
Returns
Task<ITeam Newly added channel |
AddBatchAsync(Batch, String, String)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(Batch batch, string name, string description = null)
Parameters
Batch
batch
Batch to use |
System. Display name of the channel |
System. Optional description of the channel |
Returns
Task<ITeam Newly added channel |
AddBatchAsync(String, TeamChannelOptions)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(string name, TeamChannelOptions options)
Parameters
System. Display name of the channel |
Team Options for creating the channel |
Returns
Task<ITeam Newly added channel |
AddBatchAsync(String, String)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(string name, string description = null)
Parameters
System. Display name of the channel |
System. Optional description of the channel |
Returns
Task<ITeam Newly added channel |
GetByDisplayName(String, Expression<Func<ITeamChannel, Object>>[])
Method to select a channel by displayName
Declaration
ITeamChannel GetByDisplayName(string displayName, params Expression<Func<ITeamChannel, object>>[] selectors)
Parameters
System. The displayName to search for |
Expression<Func<ITeam The expressions declaring the fields to select |
Returns
ITeam The resulting channel instance, if any |
GetByDisplayNameAsync(String, Expression<Func<ITeamChannel, Object>>[])
Method to select a channel by displayName asynchronously
Declaration
Task<ITeamChannel> GetByDisplayNameAsync(string displayName, params Expression<Func<ITeamChannel, object>>[] selectors)
Parameters
System. The displayName to search for |
Expression<Func<ITeam The expressions declaring the fields to select |
Returns
Task<ITeam The resulting channel instance, if any |