C# Class 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.
Inheritance: AbstractResources, SheetAttachmentResources
Afficher le fichier Open project: smartsheet-platform/smartsheet-csharp-sdk Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
AttachFile ( string path, string file, string contentType ) : Attachment

Attach file.

Method Details

AttachFile() public méthode

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
Résultat Smartsheet.Api.Models.Attachment

AttachUrl() public méthode

public AttachUrl ( long sheetId, Attachment attachment ) : Attachment
sheetId long
attachment Smartsheet.Api.Models.Attachment
Résultat Smartsheet.Api.Models.Attachment

DeleteAttachment() public méthode

public DeleteAttachment ( long sheetId, long attachmentId ) : void
sheetId long
attachmentId long
Résultat void

GetAttachment() public méthode

public GetAttachment ( long sheetId, long attachmentId ) : Attachment
sheetId long
attachmentId long
Résultat Smartsheet.Api.Models.Attachment

ListAttachments() public méthode

public ListAttachments ( long sheetId, PaginationParameters paging ) : PaginatedResult
sheetId long
paging Smartsheet.Api.Models.PaginationParameters
Résultat PaginatedResult

SheetAttachmentResourcesImpl() public méthode

Constructor.
public SheetAttachmentResourcesImpl ( SmartsheetImpl smartsheet ) : System
smartsheet SmartsheetImpl the Smartsheet
Résultat System