Search Results for

    Show / Hide Table of Contents

    Interface ISite

    Public interface to define a Site object of SharePoint Online

    Inherited Members
    IDataModel<ISite>.Requested
    IDataModel<ISite>.HasValue(String)
    IDataModel<ISite>.HasChanged(String)
    IDataModel<ISite>.IsPropertyAvailable(Expression<Func<ISite, Object>>)
    IDataModel<ISite>.ArePropertiesAvailable(Expression<Func<ISite, Object>>[])
    IDataModel<ISite>.EnsureProperties(Expression<Func<ISite, Object>>[])
    IDataModel<ISite>.EnsurePropertiesAsync(Expression<Func<ISite, Object>>[])
    IDataModel<ISite>.ExecuteRequestAsync(ApiRequest)
    IDataModel<ISite>.ExecuteRequest(ApiRequest)
    IDataModel<ISite>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<ISite>.ExecuteRequestBatch(ApiRequest)
    IDataModel<ISite>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<ISite>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<ISite>.GetBatchAsync(Batch, Expression<Func<ISite, Object>>[])
    IDataModelGet<ISite>.GetAsync(Expression<Func<ISite, Object>>[])
    IDataModelLoad<ISite>.LoadBatchAsync(Batch, Expression<Func<ISite, Object>>[])
    IDataModelLoad<ISite>.LoadAsync(Expression<Func<ISite, Object>>[])
    IDataModelUpdate.UpdateBatchAsync()
    IDataModelUpdate.UpdateBatchAsync(Batch)
    IDataModelUpdate.UpdateAsync()
    IDataModelUpdate.UpdateBatch()
    IDataModelUpdate.UpdateBatch(Batch)
    IDataModelUpdate.Update()
    IDataModelSupportingGetChanges.GetChangesAsync(ChangeQueryOptions)
    IDataModelSupportingGetChanges.GetChanges(ChangeQueryOptions)
    IDataModelSupportingGetChanges.GetChangesBatchAsync(Batch, ChangeQueryOptions)
    IDataModelSupportingGetChanges.GetChangesBatch(Batch, ChangeQueryOptions)
    IDataModelSupportingGetChanges.GetChangesBatchAsync(ChangeQueryOptions)
    IDataModelSupportingGetChanges.GetChangesBatch(ChangeQueryOptions)
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public interface ISite : IDataModel<ISite>, IDataModelParent, IDataModelWithContext, ISupportModules<ISite>, IDataModelGet<ISite>, IDataModelLoad<ISite>, IDataModelUpdate, IDataModelSupportingGetChanges

    Properties

    All

    A special property used to add an asterisk to a $select statement

    Declaration
    object All { get; }
    Property Value
    System.Object

    AllowCreateDeclarativeWorkflow

    Gets or sets a value that specifies whether the creation of declarative workflows is allowed on this site collection.

    Declaration
    bool AllowCreateDeclarativeWorkflow { get; set; }
    Property Value
    System.Boolean

    AllowDesigner

    Gets or sets a value that specifies whether a designer can be used on this site collection.

    Declaration
    bool AllowDesigner { get; set; }
    Property Value
    System.Boolean

    AllowExternalEmbeddingWrapper

    Gets or sets a value that specifies whether external embedding wrapper is allowed on this site collection. 0 means "Don't allow embedding any external domains" 1 means "Only allow embedding external domains from allow-embed-domains-list" 2 means "Allow embedding any external domains"

    Declaration
    int AllowExternalEmbeddingWrapper { get; set; }
    Property Value
    System.Int32

    AllowMasterPageEditing

    Gets or sets a value that specifies whether master page editing is allowed on this site collection.

    Declaration
    bool AllowMasterPageEditing { get; set; }
    Property Value
    System.Boolean

    AllowRevertFromTemplate

    Gets or sets a value that specifies whether this site collection can be reverted to its base template.

    Declaration
    bool AllowRevertFromTemplate { get; set; }
    Property Value
    System.Boolean

    AllowSaveDeclarativeWorkflowAsTemplate

    Gets or sets a value that specifies whether it is allowed to save declarative workflows as template on this site collection.

    Declaration
    bool AllowSaveDeclarativeWorkflowAsTemplate { get; set; }
    Property Value
    System.Boolean

    AllowSavePublishDeclarativeWorkflow

    Gets or sets a value that specifies whether it is allowed to save and publish declarative workflows on this site collection.

    Declaration
    bool AllowSavePublishDeclarativeWorkflow { get; set; }
    Property Value
    System.Boolean

    AllWebs

    Collection of sub-webs in the current Site object Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IWebCollection AllWebs { get; }
    Property Value
    IWebCollection

    AuditLogTrimmingRetention

    This is the number of days of audit log data to retain. If unset and audit trimming is enabled, the retention defaults default configured schedule for trimming

    Declaration
    int AuditLogTrimmingRetention { get; set; }
    Property Value
    System.Int32

    CanSyncHubSitePermissions

    Gets or sets value if syncing hub site permissions to this associated site is allowed.

    Declaration
    bool CanSyncHubSitePermissions { get; set; }
    Property Value
    System.Boolean

    ChannelGroupId

    Gets the ID of the Modern Group associated with this site.

    Declaration
    Guid ChannelGroupId { get; }
    Property Value
    Guid

    Classification

    The Classification of the Site object

    Declaration
    string Classification { get; set; }
    Property Value
    System.String

    CommentsOnSitePagesDisabled

    Gets or sets a value that specifies whether the comments on site pages are disabled on this site collection.

    Declaration
    bool CommentsOnSitePagesDisabled { get; set; }
    Property Value
    System.Boolean

    DisableAppViews

    Sets whether or not to disable app views for all child webs. True means app views are disabled throughout the site collection; False otherwise.

    Declaration
    bool DisableAppViews { get; set; }
    Property Value
    System.Boolean

    DisableCompanyWideSharingLinks

    Sets whether or not to disable company sharing links for all child webs. True means companywide sharing links are disabled throughout the site collection, regardless of the settings on the root or child webs. False means each web can individually decide whether to turn on or off companywide sharing links.

    Declaration
    bool DisableCompanyWideSharingLinks { get; set; }
    Property Value
    System.Boolean

    DisableFlows

    Sets whether or not to disable Flows for all child webs. True means Flows are disabled throughout the site collection; False otherwise.

    Declaration
    bool DisableFlows { get; set; }
    Property Value
    System.Boolean

    EventReceivers

    Event Receivers defined in this web Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IEventReceiverDefinitionCollection EventReceivers { get; }
    Property Value
    IEventReceiverDefinitionCollection

    ExternalSharingTipsEnabled

    Gets a boolean value that specifies whether users will be greeted with a notification bar telling them that the site can be shared with external users. True - notification bar is enabled; False - otherwise

    Declaration
    bool ExternalSharingTipsEnabled { get; }
    Property Value
    System.Boolean

    ExternalUserExpirationInDays

    Property that indicates the default number of days an external user will expire in. 0 if the policy is disabled or unavailable, otherwise the number of days

    Declaration
    int ExternalUserExpirationInDays { get; }
    Property Value
    System.Int32

    Features

    Collection of features enabled for the site Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IFeatureCollection Features { get; }
    Property Value
    IFeatureCollection

    GeoLocation

    returns the Geo Location hosting this site collection

    Declaration
    string GeoLocation { get; }
    Property Value
    System.String

    GroupId

    The unique ID of the associated Microsoft 365 Group (if any)

    Declaration
    Guid GroupId { get; }
    Property Value
    Guid

    HubSiteId

    Gets the ID of the HubSite this site is associated with.

    Declaration
    Guid HubSiteId { get; }
    Property Value
    Guid

    Remarks

    Use JoinHubSite method to change the value of this property.

    HubSiteSynchronizableVisitorGroup

    Gets the synchronizable visitor group for a hub site

    Declaration
    ISharePointGroup HubSiteSynchronizableVisitorGroup { get; }
    Property Value
    ISharePointGroup

    Id

    The Unique ID of the Site object

    Declaration
    Guid Id { get; }
    Property Value
    Guid

    IsHubSite

    Returns whether or not this site is a HubSite. Hub sites can be associated with one or more sites.

    Declaration
    bool IsHubSite { get; }
    Property Value
    System.Boolean

    LockIssue

    Gets the comment that is used in locking a site collection.

    Declaration
    string LockIssue { get; }
    Property Value
    System.String

    MaxItemsPerThrottledOperation

    Maximum items that will not be throttled per operation.

    Declaration
    int MaxItemsPerThrottledOperation { get; }
    Property Value
    System.Int32

    ReadOnly

    Gets or sets a bool value that specifies whether the site collection is read-only, locked, and unavailable for write access.

    Declaration
    bool ReadOnly { get; set; }
    Property Value
    System.Boolean

    RecycleBin

    Gets a value that specifies the collection of Recycle Bin items for the site collection. Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IRecycleBinItemCollection RecycleBin { get; }
    Property Value
    IRecycleBinItemCollection

    RelatedGroupId

    Gets the ID of the Modern Group related to this site.

    Declaration
    Guid RelatedGroupId { get; }
    Property Value
    Guid

    RootWeb

    The RootWeb of the Site object

    Declaration
    IWeb RootWeb { get; }
    Property Value
    IWeb

    SearchBoxInNavBar

    Whether suite nav search box is shown on modern and classic pages

    Declaration
    SearchBoxInNavBar SearchBoxInNavBar { get; set; }
    Property Value
    SearchBoxInNavBar

    SearchBoxPlaceholderText

    Search placeholder text for search box in navbar - overrides default placeholder text if set.

    Declaration
    string SearchBoxPlaceholderText { get; set; }
    Property Value
    System.String

    SensitivityLabel

    Information Protection Label Id for an individual site collection

    Declaration
    string SensitivityLabel { get; }
    Property Value
    System.String

    SensitivityLabelId

    Gets the Information Protection Label Id for an individual site collection.

    Declaration
    Guid SensitivityLabelId { get; }
    Property Value
    Guid

    ServerRelativeUrl

    Gets the server-relative URL of the root Web site in the site collection.

    Declaration
    string ServerRelativeUrl { get; }
    Property Value
    System.String

    ShareByEmailEnabled

    ShareByEmailEnabled when true means that user's will be able to grant permissions to guests for resources within the site collection

    Declaration
    bool ShareByEmailEnabled { get; set; }
    Property Value
    System.Boolean

    ShareByLinkEnabled

    Property that indicates whether users will be able to share links to documents that can be accessed without logging in.

    Declaration
    bool ShareByLinkEnabled { get; }
    Property Value
    System.Boolean

    ShowPeoplePickerSuggestionsForGuestUsers

    Gets or sets a value that specifies whether guest users should be displayed as suggestions in people picker on this site collection.

    Declaration
    bool ShowPeoplePickerSuggestionsForGuestUsers { get; set; }
    Property Value
    System.Boolean

    SocialBarOnSitePagesDisabled

    Defines whether social bar is disabled on Site Pages in this site collection

    Declaration
    bool SocialBarOnSitePagesDisabled { get; set; }
    Property Value
    System.Boolean

    StatusBarLink

    Gets or sets a value that specifies the status bar link on this site collection (sets the SiteStatusBarLink property on the root web).

    Declaration
    string StatusBarLink { get; set; }
    Property Value
    System.String

    StatusBarText

    Gets or sets a value that specifies the text of the status bar on this site collection (sets the SiteStatusBarText property on the root web).

    Declaration
    string StatusBarText { get; set; }
    Property Value
    System.String

    ThicketSupportDisabled

    Gets a value that indicates whether thicket support is disabled on this site collection.

    Declaration
    bool ThicketSupportDisabled { get; }
    Property Value
    System.Boolean

    TrimAuditLog

    When this flag is set for the site, the audit events are trimmed periodically.

    Declaration
    bool TrimAuditLog { get; set; }
    Property Value
    System.Boolean

    Url

    The URL of the Site object

    Declaration
    Uri Url { get; }
    Property Value
    Uri

    UserCustomActions

    Gets a value that specifies the collection of user custom actions for the site collection. Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IUserCustomActionCollection UserCustomActions { get; }
    Property Value
    IUserCustomActionCollection

    Methods

    CreateCopyJobs(String[], String, CopyMigrationOptions, Boolean, Int32)

    Creates a new migration job

    Array of the objects to migrate (absolute url to the file / folder) Destination URI to where the objects have to be migrated Migration options Defines if we have to wait until all the migrations have finished Duration between every GetCopyJobProgress call in seconds. Defaults to 1. List of all the jobs being created (one for every exportObjectUri)
    Declaration
    IList<ICopyMigrationInfo> CreateCopyJobs(string[] exportObjectUris, string destinationUri, CopyMigrationOptions options, bool waitUntilFinished = false, int waitAfterStatusCheck = 1)
    Parameters
    System.String[] exportObjectUris

    System.String destinationUri

    CopyMigrationOptions options

    System.Boolean waitUntilFinished

    System.Int32 waitAfterStatusCheck

    Returns
    PnP.Core.Model.SharePoint.IList<ICopyMigrationInfo>

    CreateCopyJobsAsync(String[], String, CopyMigrationOptions, Boolean, Int32)

    Creates a new migration job

    Array of the objects to migrate (absolute url to the file / folder) Destination URI to where the objects have to be migrated Migration options Defines if we have to wait until all the migrations have finished Duration between every GetCopyJobProgress call in seconds. Defaults to 1. List of all the jobs being created (one for every exportObjectUri)
    Declaration
    Task<IList<ICopyMigrationInfo>> CreateCopyJobsAsync(string[] exportObjectUris, string destinationUri, CopyMigrationOptions options, bool waitUntilFinished = false, int waitAfterStatusCheck = 1)
    Parameters
    System.String[] exportObjectUris

    System.String destinationUri

    CopyMigrationOptions options

    System.Boolean waitUntilFinished

    System.Int32 waitAfterStatusCheck

    Returns
    Task<PnP.Core.Model.SharePoint.IList<ICopyMigrationInfo>>

    EnsureCopyJobHasFinished(IList<ICopyMigrationInfo>, Int32)

    Ensures that a migration job has completely run

    List of migration jobs to check the process of Duration between every GetCopyJobProgress call in seconds. Defaults to 1.
    Declaration
    void EnsureCopyJobHasFinished(IList<ICopyMigrationInfo> copyMigrationInfos, int waitAfterStatusCheck = 1)
    Parameters
    PnP.Core.Model.SharePoint.IList<ICopyMigrationInfo> copyMigrationInfos

    System.Int32 waitAfterStatusCheck

    EnsureCopyJobHasFinishedAsync(IList<ICopyMigrationInfo>, Int32)

    Ensures that a migration job has completely run

    List of migration jobs to check the process of Duration between every GetCopyJobProgress call in seconds. Defaults to 1.
    Declaration
    Task EnsureCopyJobHasFinishedAsync(IList<ICopyMigrationInfo> copyMigrationInfos, int waitAfterStatusCheck = 1)
    Parameters
    PnP.Core.Model.SharePoint.IList<ICopyMigrationInfo> copyMigrationInfos

    System.Int32 waitAfterStatusCheck

    Returns
    Task

    GetAnalytics(AnalyticsOptions)

    Gets site analytics

    Declaration
    List<IActivityStat> GetAnalytics(AnalyticsOptions options = null)
    Parameters
    AnalyticsOptions options

    Defines which analytics are needed

    Returns
    PnP.Core.Model.SharePoint.List<IActivityStat>

    The requested analytics data

    GetAnalyticsAsync(AnalyticsOptions)

    Gets site analytics

    Declaration
    Task<List<IActivityStat>> GetAnalyticsAsync(AnalyticsOptions options = null)
    Parameters
    AnalyticsOptions options

    Defines which analytics are needed

    Returns
    Task<PnP.Core.Model.SharePoint.List<IActivityStat>>

    The requested analytics data

    GetAvailableComplianceTags()

    Retrieves the available compliance tags / retention labels for this site

    Declaration
    IEnumerable<IComplianceTag> GetAvailableComplianceTags()
    Returns
    IEnumerable<IComplianceTag>

    GetAvailableComplianceTagsAsync()

    Retrieves the available compliance tags / retention labels for this site

    Declaration
    Task<IEnumerable<IComplianceTag>> GetAvailableComplianceTagsAsync()
    Returns
    Task<IEnumerable<IComplianceTag>>

    GetCopyJobProgress(ICopyMigrationInfo)

    Gets the progress of an existing migration info object

    Migration job to get the progress of Progress of the copy job
    Declaration
    ICopyJobProgress GetCopyJobProgress(ICopyMigrationInfo copyMigrationInfo)
    Parameters
    ICopyMigrationInfo copyMigrationInfo

    Returns
    ICopyJobProgress

    GetCopyJobProgressAsync(ICopyMigrationInfo)

    Gets the progress of an existing migration info object

    Migration job to get the progress of Progress of the copy job
    Declaration
    Task<ICopyJobProgress> GetCopyJobProgressAsync(ICopyMigrationInfo copyMigrationInfo)
    Parameters
    ICopyMigrationInfo copyMigrationInfo

    Returns
    Task<ICopyJobProgress>

    GetHubSiteData(Nullable<Guid>)

    Gets hubsite data from the current site OR another specified hub site ID

    Declaration
    IHubSite GetHubSiteData(Guid? id)
    Parameters
    System.Nullable<Guid> id

    Hub Site Guid

    Returns
    IHubSite

    GetHubSiteDataAsync(Nullable<Guid>)

    Gets hubsite data from the current site OR another specified hub site ID

    Declaration
    Task<IHubSite> GetHubSiteDataAsync(Guid? id)
    Parameters
    System.Nullable<Guid> id

    Hub Site Guid

    Returns
    Task<IHubSite>

    GetSearchConfigurationManagedProperties()

    Gets the managed properties from the search configuration of this site

    Declaration
    List<IManagedProperty> GetSearchConfigurationManagedProperties()
    Returns
    PnP.Core.Model.SharePoint.List<IManagedProperty>

    List of managed properties

    GetSearchConfigurationManagedPropertiesAsync()

    Gets the managed properties from the search configuration of this site

    Declaration
    Task<List<IManagedProperty>> GetSearchConfigurationManagedPropertiesAsync()
    Returns
    Task<PnP.Core.Model.SharePoint.List<IManagedProperty>>

    List of managed properties

    GetSearchConfigurationXml()

    Gets the search configuration of the web

    Declaration
    string GetSearchConfigurationXml()
    Returns
    System.String

    Search configuration XML

    GetSearchConfigurationXmlAsync()

    Gets the search configuration of the web

    Declaration
    Task<string> GetSearchConfigurationXmlAsync()
    Returns
    Task<System.String>

    Search configuration XML

    IsHomeSite()

    Checks if current site is a HomeSite

    Declaration
    bool IsHomeSite()
    Returns
    System.Boolean

    IsHomeSiteAsync()

    Checks if current site is a HomeSite

    Declaration
    Task<bool> IsHomeSiteAsync()
    Returns
    Task<System.Boolean>

    JoinHubSite(Guid)

    Associates the current site to a primary hub site

    Declaration
    bool JoinHubSite(Guid hubSiteId)
    Parameters
    Guid hubSiteId

    Returns
    System.Boolean

    JoinHubSiteAsync(Guid)

    Associates the current site to a primary hub site

    Declaration
    Task<bool> JoinHubSiteAsync(Guid hubSiteId)
    Parameters
    Guid hubSiteId

    Returns
    Task<System.Boolean>

    RegisterHubSite()

    Registers the current site as a primary hub site

    Declaration
    IHubSite RegisterHubSite()
    Returns
    IHubSite

    RegisterHubSiteAsync()

    Registers the current site as a primary hub site

    Declaration
    Task<IHubSite> RegisterHubSiteAsync()
    Returns
    Task<IHubSite>

    SetSearchConfigurationXml(String)

    Sets the search configuration for the site

    Declaration
    void SetSearchConfigurationXml(string configuration)
    Parameters
    System.String configuration

    Search configuration, obtained via GetSearchConfigurationXml() to apply

    SetSearchConfigurationXmlAsync(String)

    Sets the search configuration for the site

    Declaration
    Task SetSearchConfigurationXmlAsync(string configuration)
    Parameters
    System.String configuration

    Search configuration, obtained via GetSearchConfigurationXml() to apply

    Returns
    Task

    UnJoinHubSite()

    Disassociates current site from primary hub site

    Declaration
    bool UnJoinHubSite()
    Returns
    System.Boolean

    UnJoinHubSiteAsync()

    Disassociates current site from primary hub site

    Declaration
    Task<bool> UnJoinHubSiteAsync()
    Returns
    Task<System.Boolean>

    UnregisterHubSite()

    Unregisters the current site as a primary hub site

    Declaration
    bool UnregisterHubSite()
    Returns
    System.Boolean

    UnregisterHubSiteAsync()

    Unregisters the current site as a primary hub site

    Declaration
    Task<bool> UnregisterHubSiteAsync()
    Returns
    Task<System.Boolean>

    Extension Methods

    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatchAsync<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.GetBatch<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelGetExtensions.Get<TModel>(IDataModelGet<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatchAsync<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Batch, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.LoadBatch<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.Load<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    DataModelLoadExtensions.QueryProperties<TModel>(IDataModelLoad<TModel>, Expression<Func<TModel, Object>>[])
    RequestModuleExtensions.WithHeaders<TModel>(ISupportModules<TModel>, Dictionary<String, String>, Action<Dictionary<String, String>>)
    RequestModuleExtensions.WithResponseHeaders<TModel>(ISupportModules<TModel>, Action<Dictionary<String, String>>)
    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer