Table of Contents

Interface ITeam

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

Public interface to define a Team object of Microsoft Teams

public interface ITeam : IDataModel<ITeam>, IDataModelParent, IDataModelWithContext, ISupportModules<ITeam>, IDataModelGet<ITeam>, IDataModelLoad<ITeam>, IDataModelUpdate
Inherited Members
Extension Methods

Properties

Channels

Collection of channels in this current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

ITeamChannelCollection Channels { get; }

Property Value

ITeamChannelCollection

ClassSettings

Defines the Class Settings for the Team

ITeamClassSettings ClassSettings { get; }

Property Value

ITeamClassSettings

Classification

The classification of the Team

string Classification { get; set; }

Property Value

string

Description

The description of the Team

string Description { get; set; }

Property Value

string

DiscoverySettings

Defines the Members Settings for the Team

ITeamDiscoverySettings DiscoverySettings { get; }

Property Value

ITeamDiscoverySettings

DisplayName

The display name of the Team

string DisplayName { get; set; }

Property Value

string

Events

Collection of tags associated with the current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

IGraphEventCollection Events { get; }

Property Value

IGraphEventCollection

FunSettings

Defines the Members Settings for the Team

ITeamFunSettings FunSettings { get; }

Property Value

ITeamFunSettings

GuestSettings

Defines the Guest Settings for the Team

ITeamGuestSettings GuestSettings { get; }

Property Value

ITeamGuestSettings

Id

The Unique ID of the Team/Group

Guid Id { get; }

Property Value

Guid

InstalledApps

Collection of installed apps in this current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

ITeamAppCollection InstalledApps { get; }

Property Value

ITeamAppCollection

InternalId

The Internal ID of the Team

string InternalId { get; }

Property Value

string

IsArchived

Defines whether the Team is archived or not

bool IsArchived { get; }

Property Value

bool

MemberSettings

Defines the Members Settings for the Team

ITeamMembersSettings MemberSettings { get; }

Property Value

ITeamMembersSettings

Members

Collection of Members of the current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

IGraphUserCollection Members { get; }

Property Value

IGraphUserCollection

MessagingSettings

Defines the Members Settings for the Team

ITeamMessagingSettings MessagingSettings { get; }

Property Value

ITeamMessagingSettings

Owners

Collection of Owners of the current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

IGraphUserCollection Owners { get; }

Property Value

IGraphUserCollection

PrimaryChannel

Reference to the Primary Channel for the Team

ITeamChannel PrimaryChannel { get; }

Property Value

ITeamChannel

Specialization

The specialization of the Team

TeamSpecialization Specialization { get; set; }

Property Value

TeamSpecialization

Tags

Collection of tags associated with the current Team Implements IQueryable<T>.
See Requesting model collections and IQueryable performance considerations to learn more.

ITeamTagCollection Tags { get; }

Property Value

ITeamTagCollection

Visibility

The specialization of the Team

TeamVisibility Visibility { get; set; }

Property Value

TeamVisibility

WebUrl

The Web URL of the Team

Uri WebUrl { get; }

Property Value

Uri

Methods

Archive()

Archives the team

ITeamAsyncOperation Archive()

Returns

ITeamAsyncOperation

Archive(bool)

Archives the team

ITeamAsyncOperation Archive(bool setSPOSiteReadOnlyForMembers)

Parameters

setSPOSiteReadOnlyForMembers bool

This optional parameter defines whether to set permissions for team members to read-only on the Sharepoint Online site associated with the team

Returns

ITeamAsyncOperation

ArchiveAsync()

Archives the team

Task<ITeamAsyncOperation> ArchiveAsync()

Returns

Task<ITeamAsyncOperation>

ArchiveAsync(bool)

Archives the team

Task<ITeamAsyncOperation> ArchiveAsync(bool setSPOSiteReadOnlyForMembers)

Parameters

setSPOSiteReadOnlyForMembers bool

This optional parameter defines whether to set permissions for team members to read-only on the Sharepoint Online site associated with the team

Returns

Task<ITeamAsyncOperation>

Unarchive()

Unarchives the team

ITeamAsyncOperation Unarchive()

Returns

ITeamAsyncOperation

UnarchiveAsync()

Unarchives the team

Task<ITeamAsyncOperation> UnarchiveAsync()

Returns

Task<ITeamAsyncOperation>