Interface IList
- Namespace
- PnP.Core.Model.SharePoint
- Assembly
- PnP.Core.dll
Public interface to define a List object of SharePoint Online
public interface IList : IDataModel<IList>, IDataModelParent, IDataModelWithContext, ISupportModules<IList>, IDataModelGet<IList>, IDataModelLoad<IList>, IDataModelUpdate, IDataModelDelete, IDataModelSupportingGetChanges, ISecurableObject, IQueryableDataModel
- Inherited Members
- Extension Methods
Properties
All
A special property used to add an asterisk to a $select statement
object All { get; }
Property Value
BaseType
Gets the base type for a list.
ListBaseType BaseType { get; }
Property Value
ContentTypes
Collection of content types for this list
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IContentTypeCollection ContentTypes { get; }
Property Value
ContentTypesEnabled
Gets or sets whether content types are enabled
bool ContentTypesEnabled { get; set; }
Property Value
Created
Specifies the date and time that the list was created.
DateTime Created { get; }
Property Value
DefaultDisplayFormUrl
Defines a value that specifies the location of the default display form for the list.
string DefaultDisplayFormUrl { get; set; }
Property Value
DefaultEditFormUrl
Defines a value that specifies the URL of the edit form to use for list items in the list.
string DefaultEditFormUrl { get; set; }
Property Value
DefaultItemOpenInBrowser
Gets or sets whether the item is opened by default using the browser.
bool DefaultItemOpenInBrowser { get; set; }
Property Value
DefaultNewFormUrl
Defines a value that specifies the location of the default new form for the list.
string DefaultNewFormUrl { get; set; }
Property Value
DefaultViewUrl
The url to the default view of this list.
string DefaultViewUrl { get; }
Property Value
Description
Gets or sets the description of the list
string Description { get; set; }
Property Value
Direction
Defines a value that specifies the reading order of the list.
ListReadingDirection Direction { get; set; }
Property Value
DisableCommenting
Gets or sets whether comments are disabled. Defaults to false.
bool DisableCommenting { get; set; }
Property Value
DocumentTemplate
Gets or sets a value that specifies the identifier of the document template for the new list. SP REST property name: DocumentTemplateUrl.
string DocumentTemplate { get; set; }
Property Value
DraftVersionVisibility
Gets or sets the DraftVersionVisibility for the list
DraftVisibilityType DraftVersionVisibility { get; set; }
Property Value
EnableAttachments
Gets or sets whether attachments are enabled. Defaults to true.
bool EnableAttachments { get; set; }
Property Value
EnableFolderCreation
Gets or sets whether folder is enabled. Defaults to true.
bool EnableFolderCreation { get; set; }
Property Value
EnableMinorVersions
Gets or sets whether minor verisioning is enabled on the list
bool EnableMinorVersions { get; set; }
Property Value
EnableModeration
Gets or sets whether moderation/content approval is enabled on the list
bool EnableModeration { get; set; }
Property Value
EnableVersioning
Gets or sets whether verisioning is enabled on the list
bool EnableVersioning { get; set; }
Property Value
EventReceivers
Event Receivers defined in this list
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IEventReceiverDefinitionCollection EventReceivers { get; }
Property Value
FieldDefaults
Defines a list of default values for the Fields of the List Instance
Dictionary<string, string> FieldDefaults { get; }
Property Value
Fields
Collection of fields for this list
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IFieldCollection Fields { get; }
Property Value
ForceCheckout
Gets or sets whether to force checkout of documents in the library
bool ForceCheckout { get; set; }
Property Value
Hidden
Gets or sets whether to hide the list
bool Hidden { get; set; }
Property Value
Id
The Unique ID of the List object
Guid Id { get; }
Property Value
ImageUrl
Defines a value that specifies the URI for the icon of the list, optional attribute.
string ImageUrl { get; set; }
Property Value
InformationRightsManagementSettings
Load the IRM settings of this list
IInformationRightsManagementSettings InformationRightsManagementSettings { get; }
Property Value
IrmEnabled
Defines if IRM is enabled for this list.
bool IrmEnabled { get; set; }
Property Value
IrmExpire
Defines if IRM Expire property, optional attribute.
bool IrmExpire { get; set; }
Property Value
IrmReject
Defines the IRM Reject property, optional attribute.
bool IrmReject { get; set; }
Property Value
IsApplicationList
Defines a value that specifies a flag that a client application can use to determine whether to display the list, optional attribute.
bool IsApplicationList { get; set; }
Property Value
IsCatalog
Gets a bool value that indicates whether the list is a gallery, such list templates, Web Parts, or Master Pages.
bool IsCatalog { get; }
Property Value
IsDefaultDocumentLibrary
Is this library the default document library of this site
bool IsDefaultDocumentLibrary { get; }
Property Value
IsPrivate
Gets a bool value that indicates whether the document library is a private list with restricted permissions, such as for Solutions
bool IsPrivate { get; }
Property Value
IsSiteAssetsLibrary
Is this library the site's site asset library
bool IsSiteAssetsLibrary { get; }
Property Value
IsSystemList
Specifies whether the list is system list that does not contain end user data and created by system account.
bool IsSystemList { get; }
Property Value
ItemCount
Number of items in the library
int ItemCount { get; }
Property Value
Items
Collection of list items in the current List object
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IListItemCollection Items { get; }
Property Value
LastItemDeletedDate
Specifies when an item in the list was last deleted. If no item has yet been deleted from the list the list creation time is returned.
DateTime LastItemDeletedDate { get; }
Property Value
LastItemModifiedDate
Specifies when an item, field, or property of the list was last modified. If no item has been created in the list, the list creation time is returned.
DateTime LastItemModifiedDate { get; }
Property Value
LastItemUserModifiedDate
Specifies when an item of the list was last modified by a non-system update. A non-system update is a change to a list item that is visible to users. If no item has been created in the list, the list creation time is returned.
DateTime LastItemUserModifiedDate { get; }
Property Value
ListExperience
Defines the current list UI/UX experience (valid for SPO only). SP REST property name: ListExperienceOptions.
ListExperience ListExperience { get; set; }
Property Value
ListItemEntityTypeFullName
The entity needed when updating list items
string ListItemEntityTypeFullName { get; }
Property Value
MaxVersionLimit
Gets or sets the MinorVersionLimit for verisioning, just in case it is enabled on the list SP REST property name: MajorVersionLimit.
int MaxVersionLimit { get; set; }
Property Value
MinorVersionLimit
Gets or sets the MinorVersionLimit for versioning, just in case it is enabled on the list SP REST property name: MajorWithMinorVersionsLimit.
int MinorVersionLimit { get; set; }
Property Value
NoCrawl
Defines if the current list or library has to be included in crawling, optional attribute.
bool NoCrawl { get; set; }
Property Value
OnQuickLaunch
Gets or sets a value that specifies whether the new list is displayed on the Quick Launch of the site.
bool OnQuickLaunch { get; set; }
Property Value
ReadSecurity
Defines the Read Security property, optional attribute.
int ReadSecurity { get; set; }
Property Value
RootFolder
Gets the root folder of the list.
IFolder RootFolder { get; }
Property Value
TemplateFeatureId
Gets or sets the Guid for TemplateFeature
Guid TemplateFeatureId { get; }
Property Value
TemplateType
Gets or sets a value that specifies the list server template of the new list. https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.listtemplatetype.aspx SP REST property name: BaseTemplate
ListTemplateType TemplateType { get; }
Property Value
Title
Gets or sets the list title
string Title { get; set; }
Property Value
UserCustomActions
Gets a value that specifies the collection of user custom actions for this list
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IUserCustomActionCollection UserCustomActions { get; }
Property Value
ValidationFormula
Defines a value that specifies the data validation criteria for a list item, optional attribute.
string ValidationFormula { get; set; }
Property Value
ValidationMessage
Defines a value that specifies the error message returned when data validation fails for a list item, optional attribute.
string ValidationMessage { get; set; }
Property Value
Views
Get a list of the views
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IViewCollection Views { get; }
Property Value
Webhooks
Collection of list webhooks
Implements IQueryable<T>.
See Requesting model collections
and IQueryable performance considerations to learn more.
IListSubscriptionCollection Webhooks { get; }
Property Value
WriteSecurity
Defines the Write Security property, optional attribute.
int WriteSecurity { get; set; }
Property Value
Methods
AddListFolder(string, string, string)
Adds a folder
IListItem AddListFolder(string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
AddListFolderAsync(string, string, string)
Adds a folder
Task<IListItem> AddListFolderAsync(string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
AddListFolderBatch(Batch, string, string, string)
Adds a folder
IListItem AddListFolderBatch(Batch batch, string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
AddListFolderBatch(string, string, string)
Adds a folder
IListItem AddListFolderBatch(string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
AddListFolderBatchAsync(Batch, string, string, string)
Adds a folder
Task<IListItem> AddListFolderBatchAsync(Batch batch, string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
AddListFolderBatchAsync(string, string, string)
Adds a folder
Task<IListItem> AddListFolderBatchAsync(string path, string parentFolder = null, string contentTypeId = "0x0120")
Parameters
Returns
CheckIfUserHasPermissions(string, PermissionKind)
Checks if a user has a specific kind of permissions to a list
bool CheckIfUserHasPermissions(string userPrincipalName, PermissionKind permissionKind)
Parameters
userPrincipalNamestringLogin name of the user you wish to check if he has a specific permission
permissionKindPermissionKindPermission kind to check
Returns
- bool
Boolean that says if the user has permissions or not
CheckIfUserHasPermissionsAsync(string, PermissionKind)
Checks if a user has a specific kind of permissions to a list
Task<bool> CheckIfUserHasPermissionsAsync(string userPrincipalName, PermissionKind permissionKind)
Parameters
userPrincipalNamestringLogin name of the user you wish to check if he has a specific permission
permissionKindPermissionKindPermission kind to check
Returns
ClassifyAndExtract(bool, int)
Classifies and extracts all unprocessed files in the list
List<ISyntexClassifyAndExtractResult> ClassifyAndExtract(bool force = false, int pageSize = 500)
Parameters
forceboolAlso classify and extract files that were processed before
pageSizeintPage size used when loading the files in this library
Returns
- List<ISyntexClassifyAndExtractResult>
Information about the created classify and extract requests
ClassifyAndExtractAsync(bool, int)
Classifies and extracts all unprocessed files in the list
Task<List<ISyntexClassifyAndExtractResult>> ClassifyAndExtractAsync(bool force = false, int pageSize = 500)
Parameters
forceboolAlso classify and extract files that were processed before
pageSizeintPage size used when loading the files in this library
Returns
- Task<List<ISyntexClassifyAndExtractResult>>
Information about the created classify and extract requests
ClassifyAndExtractOffPeak()
Classifies and extracts all unprocessed files in the list via the Syntex off-peak queue
ISyntexClassifyAndExtractResult ClassifyAndExtractOffPeak()
Returns
- ISyntexClassifyAndExtractResult
Information about the created classify and extract requests
ClassifyAndExtractOffPeakAsync()
Classifies and extracts all unprocessed files in the list via the Syntex off-peak queue
Task<ISyntexClassifyAndExtractResult> ClassifyAndExtractOffPeakAsync()
Returns
- Task<ISyntexClassifyAndExtractResult>
Information about the created classify and extract requests
ClearDefaultColumnValues()
Clears the default column values set (at folder level) for this library
void ClearDefaultColumnValues()
ClearDefaultColumnValuesAsync()
Clears the default column values set (at folder level) for this library
Task ClearDefaultColumnValuesAsync()
Returns
EnableAudienceTargeting()
Enable audience targeting for a list
void EnableAudienceTargeting()
EnableAudienceTargetingAsync()
Enable audience targeting for a list
Task EnableAudienceTargetingAsync()
Returns
FindFiles(string)
Find files in the list, can be slow as it iterates over all the files in the list. If performance is key, then try using a search based solution
List<IFile> FindFiles(string match)
Parameters
matchstring
Returns
FindFilesAsync(string)
Find files in the list, can be slow as it iterates over all the files in the list. If performance is key, then try using a search based solution
Task<List<IFile>> FindFilesAsync(string match)
Parameters
matchstring
Returns
GetComplianceTag()
Retrieves the compliance tag / retention label for this list
IComplianceTag GetComplianceTag()
Returns
GetComplianceTagAsync()
Retrieves the compliance tag / retention label for this list
Task<IComplianceTag> GetComplianceTagAsync()
Returns
GetComplianceTagBatch()
Retrieves the compliance tag / retention label for this list
IBatchSingleResult<IComplianceTag> GetComplianceTagBatch()
Returns
GetComplianceTagBatch(Batch)
Retrieves the compliance tag / retention label for this list
IBatchSingleResult<IComplianceTag> GetComplianceTagBatch(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
GetComplianceTagBatchAsync()
Retrieves the compliance tag / retention label for this list
Task<IBatchSingleResult<IComplianceTag>> GetComplianceTagBatchAsync()
Returns
GetComplianceTagBatchAsync(Batch)
Retrieves the compliance tag / retention label for this list
Task<IBatchSingleResult<IComplianceTag>> GetComplianceTagBatchAsync(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
GetContentTypeOrder()
Returns the current list or content types in the current order
List<string> GetContentTypeOrder()
Returns
- List<string>
Ordered list of content type id's, returns null when the list is not enabled to use content types
GetContentTypeOrderAsync()
Returns the current list or content types in the current order
Task<List<string>> GetContentTypeOrderAsync()
Returns
- Task<List<string>>
Ordered list of content type id's, returns null when the list is not enabled to use content types
GetDefaultColumnValues()
Gets a list of default column values set (at folder level) for this library
List<DefaultColumnValueOptions> GetDefaultColumnValues()
Returns
- List<DefaultColumnValueOptions>
List of default column values
GetDefaultColumnValuesAsync()
Gets a list of default column values set (at folder level) for this library
Task<List<DefaultColumnValueOptions>> GetDefaultColumnValuesAsync()
Returns
- Task<List<DefaultColumnValueOptions>>
List of default column values
GetFlowInstances()
Returns a list of flow instances connected to this list
List<IFlowInstance> GetFlowInstances()
Returns
- List<IFlowInstance>
List of connected flow instances
GetFlowInstancesAsync()
Returns a list of flow instances connected to this list
Task<List<IFlowInstance>> GetFlowInstancesAsync()
Returns
- Task<List<IFlowInstance>>
List of connected flow instances
GetFlowInstancesBatch()
Returns a list of flow instances connected to this list
IEnumerableBatchResult<IFlowInstance> GetFlowInstancesBatch()
Returns
- IEnumerableBatchResult<IFlowInstance>
List of connected flow instances
GetFlowInstancesBatch(Batch)
Returns a list of flow instances connected to this list
IEnumerableBatchResult<IFlowInstance> GetFlowInstancesBatch(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
- IEnumerableBatchResult<IFlowInstance>
List of connected flow instances
GetFlowInstancesBatchAsync()
Returns a list of flow instances connected to this list
Task<IEnumerableBatchResult<IFlowInstance>> GetFlowInstancesBatchAsync()
Returns
- Task<IEnumerableBatchResult<IFlowInstance>>
List of connected flow instances
GetFlowInstancesBatchAsync(Batch)
Returns a list of flow instances connected to this list
Task<IEnumerableBatchResult<IFlowInstance>> GetFlowInstancesBatchAsync(Batch batch)
Parameters
batchBatchBatch to add this request to
Returns
- Task<IEnumerableBatchResult<IFlowInstance>>
List of connected flow instances
GetUserEffectivePermissions(string)
Gets the user effective permissions of a user for a list
IBasePermissions GetUserEffectivePermissions(string userPrincipalName)
Parameters
userPrincipalNamestringLogin name of the user you wish to retrieve the permissions of
Returns
- IBasePermissions
Base permissions object that contains the High and the Low permissions
GetUserEffectivePermissionsAsync(string)
Gets the user effective permissions of a user for a list
Task<IBasePermissions> GetUserEffectivePermissionsAsync(string userPrincipalName)
Parameters
userPrincipalNamestringLogin name of the user you wish to retrieve the permissions of
Returns
- Task<IBasePermissions>
Base permissions object that contains the High and the Low permissions
LoadItemsByCamlQuery(CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQuery(CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQuery(string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQuery(string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQueryAsync(CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryAsync(CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadItemsByCamlQueryAsync(string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryAsync(string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadItemsByCamlQueryBatch(CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQueryBatch(CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQueryBatch(Batch, CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQueryBatch(Batch batch, CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
batchBatchBatch to add this request to
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQueryBatch(Batch, string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQueryBatch(Batch batch, string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
batchBatchBatch to add this request to
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQueryBatch(string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
void LoadItemsByCamlQueryBatch(string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
LoadItemsByCamlQueryBatchAsync(CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryBatchAsync(CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadItemsByCamlQueryBatchAsync(Batch, CamlQueryOptions, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryBatchAsync(Batch batch, CamlQueryOptions queryOptions, params Expression<Func<IListItem, object>>[] selectors)
Parameters
batchBatchBatch to add this request to
queryOptionsCamlQueryOptionsCamlQueryOptions defining the query to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadItemsByCamlQueryBatchAsync(Batch, string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryBatchAsync(Batch batch, string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
batchBatchBatch to add this request to
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadItemsByCamlQueryBatchAsync(string, params Expression<Func<IListItem, object>>[])
Loads list items based up on a CAML query
Task LoadItemsByCamlQueryBatchAsync(string query, params Expression<Func<IListItem, object>>[] selectors)
Parameters
querystringquery to execute
selectorsExpression<Func<IListItem, object>>[]The expressions declaring the fields to select
Returns
LoadListDataAsStream(RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
Dictionary<string, object> LoadListDataAsStream(RenderListDataOptions renderOptions)
Parameters
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
LoadListDataAsStreamAsync(RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
Task<Dictionary<string, object>> LoadListDataAsStreamAsync(RenderListDataOptions renderOptions)
Parameters
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
LoadListDataAsStreamBatch(RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
IBatchSingleResult<Dictionary<string, object>> LoadListDataAsStreamBatch(RenderListDataOptions renderOptions)
Parameters
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
LoadListDataAsStreamBatch(Batch, RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
IBatchSingleResult<Dictionary<string, object>> LoadListDataAsStreamBatch(Batch batch, RenderListDataOptions renderOptions)
Parameters
batchBatchBatch to add this request to
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
LoadListDataAsStreamBatchAsync(RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
Task<IBatchSingleResult<Dictionary<string, object>>> LoadListDataAsStreamBatchAsync(RenderListDataOptions renderOptions)
Parameters
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
LoadListDataAsStreamBatchAsync(Batch, RenderListDataOptions)
Loads list items based up on a CAML query and the RenderListDataAsStream API
Task<IBatchSingleResult<Dictionary<string, object>>> LoadListDataAsStreamBatchAsync(Batch batch, RenderListDataOptions renderOptions)
Parameters
batchBatchBatch to add this request to
renderOptionsRenderListDataOptionsRenderListDataOptions defining the query to execute
Returns
ReIndex()
Reindexes this list
void ReIndex()
ReIndexAsync()
Reindexes this list
Task ReIndexAsync()
Returns
Recycle()
Moves this list into the site collection recycle bin, returns the recyle bin item id
Guid Recycle()
Returns
- Guid
Id of the recycle bin item
RecycleAsync()
Moves this list into the site collection recycle bin, returns the recyle bin item id
Task<Guid> RecycleAsync()
Returns
RecycleBatch()
Moves this list into the site collection recycle bin, returns the recyle bin item id
IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch()
Returns
- IBatchSingleResult<BatchResultValue<Guid>>
Id of the recycle bin item
RecycleBatch(Batch)
Moves this list into the site collection recycle bin, returns the recyle bin item id
IBatchSingleResult<BatchResultValue<Guid>> RecycleBatch(Batch batch)
Parameters
batchBatchBatch to add the request to
Returns
- IBatchSingleResult<BatchResultValue<Guid>>
Id of the recycle bin item
RecycleBatchAsync()
Moves this list into the site collection recycle bin, returns the recyle bin item id
Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync()
Returns
- Task<IBatchSingleResult<BatchResultValue<Guid>>>
Id of the recycle bin item
RecycleBatchAsync(Batch)
Moves this list into the site collection recycle bin, returns the recyle bin item id
Task<IBatchSingleResult<BatchResultValue<Guid>>> RecycleBatchAsync(Batch batch)
Parameters
batchBatchBatch to add the request to
Returns
- Task<IBatchSingleResult<BatchResultValue<Guid>>>
Id of the recycle bin item
ReorderContentTypes(List<string>)
Reorders the content types on the list. This controls the order of content types in the "New" menu and "List Settings" page
void ReorderContentTypes(List<string> contentTypeIdList)
Parameters
ReorderContentTypesAsync(List<string>)
Reorders the content types on the list. This controls the order of content types in the "New" menu and "List Settings" page
Task ReorderContentTypesAsync(List<string> contentTypeIdList)
Parameters
Returns
SetComplianceTag(string, bool, bool, bool)
Sets a compliance tag / retention label for this list
void SetComplianceTag(string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
SetComplianceTagAsync(string, bool, bool, bool)
Sets a compliance tag / retention label for this list
Task SetComplianceTagAsync(string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
Returns
SetComplianceTagBatch(Batch, string, bool, bool, bool)
Sets a compliance tag / retention label for this list
void SetComplianceTagBatch(Batch batch, string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
batchBatchBatch to add this request to
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
SetComplianceTagBatch(string, bool, bool, bool)
Sets a compliance tag / retention label for this list
void SetComplianceTagBatch(string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
SetComplianceTagBatchAsync(Batch, string, bool, bool, bool)
Sets a compliance tag / retention label for this list
Task SetComplianceTagBatchAsync(Batch batch, string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
batchBatchBatch to add this request to
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
Returns
SetComplianceTagBatchAsync(string, bool, bool, bool)
Sets a compliance tag / retention label for this list
Task SetComplianceTagBatchAsync(string complianceTagValue, bool blockDelete, bool blockEdit, bool syncToItems)
Parameters
complianceTagValuestringCompliance tag
blockDeleteboolPrevent deletion of the list (Hold)
blockEditboolPrevent editing of the list (Record)
syncToItemsboolIf true the compliance tag is synced to the list items in this list
Returns
SetDefaultColumnValues(List<DefaultColumnValueOptions>)
Sets the default column value settings (at folder level) for this library
void SetDefaultColumnValues(List<DefaultColumnValueOptions> defaultColumnValues)
Parameters
defaultColumnValuesList<DefaultColumnValueOptions>List with default column values to set
SetDefaultColumnValuesAsync(List<DefaultColumnValueOptions>)
Sets the default column value settings (at folder level) for this library
Task SetDefaultColumnValuesAsync(List<DefaultColumnValueOptions> defaultColumnValues)
Parameters
defaultColumnValuesList<DefaultColumnValueOptions>List with default column values to set