C# 클래스 Box.V2.Managers.BoxCollectionsManager

Managing collections
상속: BoxResourceManager
파일 보기 프로젝트 열기: box/box-windows-sdk-v2 1 사용 예제들

공개 메소드들

메소드 설명
BoxCollectionsManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth
CreateOrDeleteCollectionsForFileAsync ( string fileId, BoxCollectionsRequest collectionsRequest ) : Task

To add or remove an item from a collection, you do a PUT on that item and change the list of collections it belongs to.

CreateOrDeleteCollectionsForFolderAsync ( string folderId, BoxCollectionsRequest collectionsRequest ) : Task

To add or remove an item from a collection, you do a PUT on that item and change the list of collections it belongs to.

GetCollectionItemsAsync ( string collectionId, int limit = 100, int offset, List fields = null, bool autoPaginate = false ) : Task>

Retrieves the files and/or folders contained within this collection. Collection item lists behave a lot like getting a folder’s items.

GetCollectionsAsync ( ) : Task>

Retrieves the collections for the given user. Currently, only the favorites collection is supported.

메소드 상세

BoxCollectionsManager() 공개 메소드

public BoxCollectionsManager ( IBoxConfig config, IBoxService service, IBoxConverter converter, IAuthRepository auth, string asUser = null, bool suppressNotifications = null ) : Box.V2.Auth
config IBoxConfig
service IBoxService
converter IBoxConverter
auth IAuthRepository
asUser string
suppressNotifications bool
리턴 Box.V2.Auth

CreateOrDeleteCollectionsForFileAsync() 공개 메소드

To add or remove an item from a collection, you do a PUT on that item and change the list of collections it belongs to.
public CreateOrDeleteCollectionsForFileAsync ( string fileId, BoxCollectionsRequest collectionsRequest ) : Task
fileId string Id of the file.
collectionsRequest Box.V2.Models.BoxCollectionsRequest The request which contains collections ids
리턴 Task

CreateOrDeleteCollectionsForFolderAsync() 공개 메소드

To add or remove an item from a collection, you do a PUT on that item and change the list of collections it belongs to.
public CreateOrDeleteCollectionsForFolderAsync ( string folderId, BoxCollectionsRequest collectionsRequest ) : Task
folderId string Id of the folder.
collectionsRequest Box.V2.Models.BoxCollectionsRequest The request which contains collections ids
리턴 Task

GetCollectionItemsAsync() 공개 메소드

Retrieves the files and/or folders contained within this collection. Collection item lists behave a lot like getting a folder’s items.
public GetCollectionItemsAsync ( string collectionId, int limit = 100, int offset, List fields = null, bool autoPaginate = false ) : Task>
collectionId string The collection identifier.
limit int The maximum number of items to return in a page.
offset int The offset at which to begin the response. An offset of value of 0 will start at the beginning of the folder-listing. Offset of 2 would start at the 2nd record, not the second page. Note: If there are hidden items in your previous response, your next offset should be = offset + limit, not the # of records you received back.
fields List Attribute(s) to include in the response.
autoPaginate bool Whether or not to auto-paginate to fetch all items; defaults to false.
리턴 Task>

GetCollectionsAsync() 공개 메소드

Retrieves the collections for the given user. Currently, only the favorites collection is supported.
public GetCollectionsAsync ( ) : Task>
리턴 Task>