C# Класс Smartsheet.Api.Internal.SheetAttachmentResourcesImpl

This is the implementation of the SheetAttachmentResources. Thread Safety: This class is thread safe because it is immutable and its base class is thread safe.
Наследование: AbstractResources, SheetAttachmentResources
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AttachFile ( long sheetId, string file, string fileType ) : Attachment

Attaches a file to the Sheet.

It mirrors To the following Smartsheet REST API method:
POST /sheets/{sheetId}/attachments

AttachUrl ( long sheetId, Attachment attachment ) : Attachment
DeleteAttachment ( long sheetId, long attachmentId ) : void
GetAttachment ( long sheetId, long attachmentId ) : Attachment
ListAttachments ( long sheetId, PaginationParameters paging ) : PaginatedResult
SheetAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System

Constructor.

Приватные методы

Метод Описание
AttachFile ( string path, string file, string contentType ) : Attachment

Attach file.

Описание методов

AttachFile() публичный Метод

Attaches a file to the Sheet.

It mirrors To the following Smartsheet REST API method:
POST /sheets/{sheetId}/attachments

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public AttachFile ( long sheetId, string file, string fileType ) : Attachment
sheetId long the sheet Id
file string the file path
fileType string the file type
Результат Smartsheet.Api.Models.Attachment

AttachUrl() публичный Метод

public AttachUrl ( long sheetId, Attachment attachment ) : Attachment
sheetId long
attachment Smartsheet.Api.Models.Attachment
Результат Smartsheet.Api.Models.Attachment

DeleteAttachment() публичный Метод

public DeleteAttachment ( long sheetId, long attachmentId ) : void
sheetId long
attachmentId long
Результат void

GetAttachment() публичный Метод

public GetAttachment ( long sheetId, long attachmentId ) : Attachment
sheetId long
attachmentId long
Результат Smartsheet.Api.Models.Attachment

ListAttachments() публичный Метод

public ListAttachments ( long sheetId, PaginationParameters paging ) : PaginatedResult
sheetId long
paging Smartsheet.Api.Models.PaginationParameters
Результат PaginatedResult

SheetAttachmentResourcesImpl() публичный Метод

Constructor.
public SheetAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System
smartsheet SmartsheetImpl the Smartsheet
Результат System