Table of Contents

Interface ITeamChannelCollection

Namespace
PnP.Core.Model.Teams
Assembly
PnP.Core.dll

Public interface to define a collection of Team Channels

public interface ITeamChannelCollection : IQueryable<ITeamChannel>, IQueryable, IAsyncEnumerable<ITeamChannel>, IDataModelCollection<ITeamChannel>, IEnumerable<ITeamChannel>, IEnumerable, IDataModelParent, IDataModelWithContext, IRequestableCollection, IDataModelCollectionLoad<ITeamChannel>, IDataModelCollectionDeleteByStringId, ISupportModules<ITeamChannelCollection>
Inherited Members
Extension Methods

Methods

Add(string, TeamChannelOptions)

Adds a new channel

ITeamChannel Add(string name, TeamChannelOptions options)

Parameters

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

ITeamChannel

Newly added channel

Add(string, string)

Adds a new channel

ITeamChannel Add(string name, string description = null)

Parameters

name string

Display name of the channel

description string

Optional description of the channel

Returns

ITeamChannel

Newly added channel

AddAsync(string, TeamChannelOptions)

Adds a new channel

Task<ITeamChannel> AddAsync(string name, TeamChannelOptions options)

Parameters

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

Task<ITeamChannel>

Newly added channel

AddAsync(string, string)

Adds a new channel

Task<ITeamChannel> AddAsync(string name, string description = null)

Parameters

name string

Display name of the channel

description string

Optional description of the channel

Returns

Task<ITeamChannel>

Newly added channel

AddBatch(Batch, string, TeamChannelOptions)

Adds a new channel

ITeamChannel AddBatch(Batch batch, string name, TeamChannelOptions options)

Parameters

batch Batch

Batch to use

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

ITeamChannel

Newly added channel

AddBatch(Batch, string, string)

Adds a new channel

ITeamChannel AddBatch(Batch batch, string name, string description = null)

Parameters

batch Batch

Batch to use

name string

Display name of the channel

description string

Optional description of the channel

Returns

ITeamChannel

Newly added channel

AddBatch(string, TeamChannelOptions)

Adds a new channel

ITeamChannel AddBatch(string name, TeamChannelOptions options)

Parameters

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

ITeamChannel

Newly added channel

AddBatch(string, string)

Adds a new channel

ITeamChannel AddBatch(string name, string description = null)

Parameters

name string

Display name of the channel

description string

Optional description of the channel

Returns

ITeamChannel

Newly added channel

AddBatchAsync(Batch, string, TeamChannelOptions)

Adds a new channel

Task<ITeamChannel> AddBatchAsync(Batch batch, string name, TeamChannelOptions options)

Parameters

batch Batch

Batch to use

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

Task<ITeamChannel>

Newly added channel

AddBatchAsync(Batch, string, string)

Adds a new channel

Task<ITeamChannel> AddBatchAsync(Batch batch, string name, string description = null)

Parameters

batch Batch

Batch to use

name string

Display name of the channel

description string

Optional description of the channel

Returns

Task<ITeamChannel>

Newly added channel

AddBatchAsync(string, TeamChannelOptions)

Adds a new channel

Task<ITeamChannel> AddBatchAsync(string name, TeamChannelOptions options)

Parameters

name string

Display name of the channel

options TeamChannelOptions

Options for creating the channel

Returns

Task<ITeamChannel>

Newly added channel

AddBatchAsync(string, string)

Adds a new channel

Task<ITeamChannel> AddBatchAsync(string name, string description = null)

Parameters

name string

Display name of the channel

description string

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

ITeamChannel GetByDisplayName(string displayName, params Expression<Func<ITeamChannel, object>>[] selectors)

Parameters

displayName string

The displayName to search for

selectors Expression<Func<ITeamChannel, object>>[]

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

Task<ITeamChannel> GetByDisplayNameAsync(string displayName, params Expression<Func<ITeamChannel, object>>[] selectors)

Parameters

displayName string

The displayName to search for

selectors Expression<Func<ITeamChannel, object>>[]

The expressions declaring the fields to select

Returns

Task<ITeamChannel>

The resulting channel instance, if any