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 : IQueryable<ITeamChannel>, IQueryable, IAsyncEnumerable<ITeamChannel>, IDataModelCollection<ITeamChannel>, IEnumerable<ITeamChannel>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<ITeamChannel>, IDataModelCollectionDeleteByStringId, ISupportModules<ITeamChannelCollection>
Methods
Add(string, TeamChannelOptions)
Adds a new channel
Declaration
ITeamChannel Add(string name, TeamChannelOptions options)
Parameters
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
ITeamChannel
Newly added channel |
Add(string, string)
Adds a new channel
Declaration
ITeamChannel Add(string name, string description = null)
Parameters
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
ITeamChannel
Newly added channel |
AddAsync(string, TeamChannelOptions)
Adds a new channel
Declaration
Task<ITeamChannel> AddAsync(string name, TeamChannelOptions options)
Parameters
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
Task<ITeamChannel>
Newly added channel |
AddAsync(string, string)
Adds a new channel
Declaration
Task<ITeamChannel> AddAsync(string name, string description = null)
Parameters
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
Task<ITeamChannel>
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 |
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
ITeamChannel
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 |
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
ITeamChannel
Newly added channel |
AddBatch(string, TeamChannelOptions)
Adds a new channel
Declaration
ITeamChannel AddBatch(string name, TeamChannelOptions options)
Parameters
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
ITeamChannel
Newly added channel |
AddBatch(string, string)
Adds a new channel
Declaration
ITeamChannel AddBatch(string name, string description = null)
Parameters
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
ITeamChannel
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 |
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
Task<ITeamChannel>
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 |
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
Task<ITeamChannel>
Newly added channel |
AddBatchAsync(string, TeamChannelOptions)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(string name, TeamChannelOptions options)
Parameters
|
string
name
Display name of the channel |
|
TeamChannelOptions
options
Options for creating the channel |
Returns
|
Task<ITeamChannel>
Newly added channel |
AddBatchAsync(string, string)
Adds a new channel
Declaration
Task<ITeamChannel> AddBatchAsync(string name, string description = null)
Parameters
|
string
name
Display name of the channel |
|
string
description
Optional description of the channel |
Returns
|
Task<ITeamChannel>
Newly added channel |
GetByDisplayName(string, params Expression<Func<ITeamChannel, object>>[])
Method to select a channel by displayName
Declaration
ITeamChannel GetByDisplayName(string displayName, params Expression<Func<ITeamChannel, object>>[] selectors)
Parameters
|
string
displayName
The displayName to search for |
|
Expression<Func<ITeamChannel, object>>[]
selectors
The expressions declaring the fields to select |
Returns
|
ITeamChannel
The resulting channel instance, if any |
GetByDisplayNameAsync(string, params 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
|
string
displayName
The displayName to search for |
|
Expression<Func<ITeamChannel, object>>[]
selectors
The expressions declaring the fields to select |
Returns
|
Task<ITeamChannel>
The resulting channel instance, if any |