Search Results for

    Show / Hide Table of Contents

    Interface IFolder

    Public interface to define a Folder object

    Inherited Members
    IDataModel<IFolder>.Requested
    IDataModel<IFolder>.HasValue(String)
    IDataModel<IFolder>.HasChanged(String)
    IDataModel<IFolder>.IsPropertyAvailable(Expression<Func<IFolder, Object>>)
    IDataModel<IFolder>.ArePropertiesAvailable(Expression<Func<IFolder, Object>>[])
    IDataModel<IFolder>.EnsureProperties(Expression<Func<IFolder, Object>>[])
    IDataModel<IFolder>.EnsurePropertiesAsync(Expression<Func<IFolder, Object>>[])
    IDataModel<IFolder>.ExecuteRequestAsync(ApiRequest)
    IDataModel<IFolder>.ExecuteRequest(ApiRequest)
    IDataModel<IFolder>.ExecuteRequestBatchAsync(ApiRequest)
    IDataModel<IFolder>.ExecuteRequestBatch(ApiRequest)
    IDataModel<IFolder>.ExecuteRequestBatchAsync(Batch, ApiRequest)
    IDataModel<IFolder>.ExecuteRequestBatch(Batch, ApiRequest)
    IDataModelParent.Parent
    IDataModelWithContext.PnPContext
    IDataModelGet<IFolder>.GetBatchAsync(Batch, Expression<Func<IFolder, Object>>[])
    IDataModelGet<IFolder>.GetAsync(Expression<Func<IFolder, Object>>[])
    IDataModelLoad<IFolder>.LoadBatchAsync(Batch, Expression<Func<IFolder, Object>>[])
    IDataModelLoad<IFolder>.LoadAsync(Expression<Func<IFolder, Object>>[])
    IDataModelUpdate.UpdateBatchAsync()
    IDataModelUpdate.UpdateBatchAsync(Batch)
    IDataModelUpdate.UpdateAsync()
    IDataModelUpdate.UpdateBatch()
    IDataModelUpdate.UpdateBatch(Batch)
    IDataModelUpdate.Update()
    IDataModelDelete.DeleteBatchAsync()
    IDataModelDelete.DeleteBatchAsync(Batch)
    IDataModelDelete.DeleteAsync()
    IDataModelDelete.DeleteBatch()
    IDataModelDelete.DeleteBatch(Batch)
    IDataModelDelete.Delete()
    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 IFolder : IDataModel<IFolder>, IDataModelParent, IDataModelWithContext, ISupportModules<IFolder>, IDataModelGet<IFolder>, IDataModelLoad<IFolder>, IDataModelUpdate, IDataModelDelete, IDataModelSupportingGetChanges, IQueryableDataModel

    Properties

    All

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

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

    ContentTypeOrder

    Default ordered list of content types on a list, before adjustments

    Declaration
    IContentTypeIdCollection ContentTypeOrder { get; }
    Property Value
    IContentTypeIdCollection

    Exists

    Gets whether the folder exists,

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

    Files

    Gets the collection of files contained in the folder

    Declaration
    IFileCollection Files { get; }
    Property Value
    IFileCollection

    Folders

    Gets the collection of list folders contained in the list folder. Implements .
    See Requesting model collections and IQueryable performance considerations to learn more.

    Declaration
    IFolderCollection Folders { get; }
    Property Value
    IFolderCollection

    IsWOPIEnabled

    Indicate whether the folder is enabled for WOPI default action.

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

    ItemCount

    Gets a value that specifies the count of items in the list folder.

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

    ListItemAllFields

    Gets the list item field values for the list item corresponding to the file.

    Declaration
    IListItem ListItemAllFields { get; }
    Property Value
    IListItem

    Name

    Gets the name of the folder.

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

    ParentFolder

    Gets the parent list folder of the folder.

    Declaration
    IFolder ParentFolder { get; }
    Property Value
    IFolder

    ProgID

    Gets a string that identifies the application in which the folder was created.

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

    Properties

    Gets the collection of all properties defined for this folder.

    Declaration
    IPropertyValues Properties { get; }
    Property Value
    IPropertyValues

    ServerRelativeUrl

    Gets the server-relative URL of the list folder.

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

    StorageMetrics

    Get the storage metrics of the folder.

    Declaration
    IStorageMetrics StorageMetrics { get; }
    Property Value
    IStorageMetrics

    TimeCreated

    Gets the creation time of the folder.

    Declaration
    DateTime TimeCreated { get; }
    Property Value
    DateTime

    TimeLastModified

    Gets the last modification time of the folder.

    Declaration
    DateTime TimeLastModified { get; }
    Property Value
    DateTime

    UniqueContentTypeOrder

    Ordered list of content types on a list: controls order of items in the "New" menu and "List Settings" page

    Declaration
    IContentTypeIdCollection UniqueContentTypeOrder { get; }
    Property Value
    IContentTypeIdCollection

    UniqueId

    Gets the Unique Id of the folder.

    Declaration
    Guid UniqueId { get; }
    Property Value
    Guid

    WelcomePage

    Gets or sets a value that specifies folder-relative URL for the list folder welcome page.

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

    Methods

    AddFolder(String)

    Add a folder to the current folder.

    Declaration
    IFolder AddFolder(string name)
    Parameters
    System.String name

    The name of the folder to add.

    Returns
    IFolder

    The added folder.

    AddFolderAsync(String)

    Add a folder to the current folder.

    Declaration
    Task<IFolder> AddFolderAsync(string name)
    Parameters
    System.String name

    The name of the folder to add.

    Returns
    Task<IFolder>

    The added folder.

    AddFolderBatch(Batch, String)

    Add a folder to the current folder via batch.

    Declaration
    IFolder AddFolderBatch(Batch batch, string name)
    Parameters
    Batch batch

    Batch to add the reques to

    System.String name

    The name of the folder to add.

    Returns
    IFolder

    The added folder.

    AddFolderBatch(String)

    Add a folder to the current folder via batch.

    Declaration
    IFolder AddFolderBatch(string name)
    Parameters
    System.String name

    The name of the folder to add.

    Returns
    IFolder

    The added folder.

    AddFolderBatchAsync(Batch, String)

    Add a folder to the current folder via batch.

    Declaration
    Task<IFolder> AddFolderBatchAsync(Batch batch, string name)
    Parameters
    Batch batch

    Batch to add the reques to

    System.String name

    The name of the folder to add.

    Returns
    Task<IFolder>

    The added folder.

    AddFolderBatchAsync(String)

    Add a folder to the current folder via batch.

    Declaration
    Task<IFolder> AddFolderBatchAsync(string name)
    Parameters
    System.String name

    The name of the folder to add.

    Returns
    Task<IFolder>

    The added folder.

    ClassifyAndExtractOffPeak()

    Classifies and extracts all unprocessed files in this folder and it's sub folders via the Syntex off-peak queue

    Declaration
    ISyntexClassifyAndExtractResult ClassifyAndExtractOffPeak()
    Returns
    ISyntexClassifyAndExtractResult

    Information about the created classify and extract requests

    ClassifyAndExtractOffPeakAsync()

    Classifies and extracts all unprocessed files in this folder and it's sub folders via the Syntex off-peak queue

    Declaration
    Task<ISyntexClassifyAndExtractResult> ClassifyAndExtractOffPeakAsync()
    Returns
    Task<ISyntexClassifyAndExtractResult>

    Information about the created classify and extract requests

    CopyTo(String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    void CopyTo(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    CopyToAsync(String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    Task CopyToAsync(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    Returns
    Task

    CopyToBatch(Batch, String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    void CopyToBatch(Batch batch, string destinationUrl, MoveCopyOptions options = null)
    Parameters
    Batch batch

    The batch instance to use.

    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    CopyToBatch(String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    void CopyToBatch(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    CopyToBatchAsync(Batch, String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    Task CopyToBatchAsync(Batch batch, string destinationUrl, MoveCopyOptions options = null)
    Parameters
    Batch batch

    The batch instance to use.

    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    Returns
    Task

    CopyToBatchAsync(String, MoveCopyOptions)

    Copies a folder to the destination URL.

    Declaration
    Task CopyToBatchAsync(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the copy operation.

    Returns
    Task

    CreateAnonymousSharingLink(AnonymousLinkOptions)

    Creates an anonymous sharing link for a file

    Declaration
    IGraphPermission CreateAnonymousSharingLink(AnonymousLinkOptions anonymousLinkOptions)
    Parameters
    AnonymousLinkOptions anonymousLinkOptions

    Returns
    IGraphPermission

    Permission that has been created

    CreateAnonymousSharingLinkAsync(AnonymousLinkOptions)

    Creates an anonymous sharing link for a file

    Declaration
    Task<IGraphPermission> CreateAnonymousSharingLinkAsync(AnonymousLinkOptions anonymousLinkOptions)
    Parameters
    AnonymousLinkOptions anonymousLinkOptions

    Returns
    Task<IGraphPermission>

    Permission that has been created

    CreateOrganizationalSharingLink(OrganizationalLinkOptions)

    Creates an organization sharing link for a file

    Declaration
    IGraphPermission CreateOrganizationalSharingLink(OrganizationalLinkOptions organizationalLinkOptions)
    Parameters
    OrganizationalLinkOptions organizationalLinkOptions

    Returns
    IGraphPermission

    Permission that has been created

    CreateOrganizationalSharingLinkAsync(OrganizationalLinkOptions)

    Creates an organization sharing link for a file

    Declaration
    Task<IGraphPermission> CreateOrganizationalSharingLinkAsync(OrganizationalLinkOptions organizationalLinkOptions)
    Parameters
    OrganizationalLinkOptions organizationalLinkOptions

    Returns
    Task<IGraphPermission>

    Permission that has been created

    CreateSharingInvite(InviteOptions)

    Creates a sharing invite to a specific user

    Declaration
    IGraphPermission CreateSharingInvite(InviteOptions inviteOptions)
    Parameters
    InviteOptions inviteOptions

    Returns
    IGraphPermission

    Permission that has been created

    CreateSharingInviteAsync(InviteOptions)

    Creates a sharing invite to a specific user

    Declaration
    Task<IGraphPermission> CreateSharingInviteAsync(InviteOptions inviteOptions)
    Parameters
    InviteOptions inviteOptions

    Returns
    Task<IGraphPermission>

    Permission that has been created

    CreateUserSharingLink(UserLinkOptions)

    Creates a user sharing link for a file

    Declaration
    IGraphPermission CreateUserSharingLink(UserLinkOptions userLinkOptions)
    Parameters
    UserLinkOptions userLinkOptions

    Returns
    IGraphPermission

    Permission that has been created

    CreateUserSharingLinkAsync(UserLinkOptions)

    Creates a user sharing link for a file

    Declaration
    Task<IGraphPermission> CreateUserSharingLinkAsync(UserLinkOptions userLinkOptions)
    Parameters
    UserLinkOptions userLinkOptions

    Returns
    Task<IGraphPermission>

    Permission that has been created

    DeleteShareLinks()

    Deletes the share links on the file item

    Declaration
    void DeleteShareLinks()

    DeleteShareLinksAsync()

    Deletes the share links on the file item

    Declaration
    Task DeleteShareLinksAsync()
    Returns
    Task

    EnsureFolder(String, Expression<Func<IFolder, Object>>[])

    Ensures a (hierarchy) of folders exists on a given folder

    Declaration
    IFolder EnsureFolder(string folderRelativeUrl, params Expression<Func<IFolder, object>>[] expressions)
    Parameters
    System.String folderRelativeUrl

    a (hierarchy) of folders (e.g. folderA/folderB/FolderC)

    Expression<Func<IFolder, System.Object>>[] expressions

    Expressions needed to create the request, only used when the folder exists, if the returned folder was newly created the default properties are returned

    Returns
    IFolder

    The IFolder representing the final folder in the hierarchy (e.g. FolderC)

    EnsureFolderAsync(String, Expression<Func<IFolder, Object>>[])

    Ensures a (hierarchy) of folders exists on a given folder

    Declaration
    Task<IFolder> EnsureFolderAsync(string folderRelativeUrl, params Expression<Func<IFolder, object>>[] expressions)
    Parameters
    System.String folderRelativeUrl

    a (hierarchy) of folders (e.g. folderA/folderB/FolderC)

    Expression<Func<IFolder, System.Object>>[] expressions

    Expressions needed to create the request, only used when the folder exists, if the returned folder was newly created the default properties are returned

    Returns
    Task<IFolder>

    The IFolder representing the final folder in the hierarchy (e.g. FolderC)

    FindFiles(String)

    Find files in the folder, can be slow as it iterates over all the files in the folder and it's sub folders. If performance is key, then try using a search based solution

    Declaration
    List<IFile> FindFiles(string match)
    Parameters
    System.String match

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

    A of found files as type IFile

    FindFilesAsync(String)

    Find files in the folder, can be slow as it iterates over all the files in the folder and it's sub folders. If performance is key, then try using a search based solution

    Declaration
    Task<List<IFile>> FindFilesAsync(string match)
    Parameters
    System.String match

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

    A of found files as type IFile

    GetShareLinks()

    Gets the share links on the file item

    Declaration
    IGraphPermissionCollection GetShareLinks()
    Returns
    IGraphPermissionCollection

    Collection of share links existing on the file

    GetShareLinksAsync()

    Gets the share links on the file item

    Declaration
    Task<IGraphPermissionCollection> GetShareLinksAsync()
    Returns
    Task<IGraphPermissionCollection>

    Collection of share links existing on the file

    MoveTo(String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    void MoveTo(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    MoveToAsync(String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    Task MoveToAsync(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    Returns
    Task

    MoveToBatch(Batch, String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    void MoveToBatch(Batch batch, string destinationUrl, MoveCopyOptions options = null)
    Parameters
    Batch batch

    The batch instance to use.

    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    MoveToBatch(String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    void MoveToBatch(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    MoveToBatchAsync(Batch, String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    Task MoveToBatchAsync(Batch batch, string destinationUrl, MoveCopyOptions options = null)
    Parameters
    Batch batch

    The batch instance to use.

    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    Returns
    Task

    MoveToBatchAsync(String, MoveCopyOptions)

    Moves a folder to the destination URL.

    Declaration
    Task MoveToBatchAsync(string destinationUrl, MoveCopyOptions options = null)
    Parameters
    System.String destinationUrl

    The destination URL.

    MoveCopyOptions options

    options of the move operation.

    Returns
    Task

    Recycle()

    Send the file to recycle bin.

    Declaration
    Guid Recycle()
    Returns
    Guid

    The Id of the created recycle bin item

    RecycleAsync()

    Send the file to recycle bin.

    Declaration
    Task<Guid> RecycleAsync()
    Returns
    Task<Guid>

    The Id of the created recycle bin item

    RecycleBatch()

    Send the file to recycle bin.

    Declaration
    IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch()
    Returns
    IBatchSingleResult<BatchResultValue<Guid>>

    RecycleBatch(Batch)

    Send the file to recycle bin

    Declaration
    IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch(Batch batch)
    Parameters
    Batch batch

    The batch instance to use.

    Returns
    IBatchSingleResult<BatchResultValue<Guid>>

    RecycleBatchAsync()

    Send the file to recycle bin.

    Declaration
    Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync()
    Returns
    Task<IBatchSingleResult<BatchResultValue<Guid>>>

    RecycleBatchAsync(Batch)

    Send the file to recycle bin.

    Declaration
    Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync(Batch batch)
    Parameters
    Batch batch

    The batch instance to use.

    Returns
    Task<IBatchSingleResult<BatchResultValue<Guid>>>

    Rename(String)

    Renames a folder

    Declaration
    void Rename(string name)
    Parameters
    System.String name

    New folder name

    RenameAsync(String)

    Renames a folder

    Declaration
    Task RenameAsync(string name)
    Parameters
    System.String name

    New folder name

    Returns
    Task

    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