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
파일 보기 프로젝트 열기: smartsheet-platform/smartsheet-csharp-sdk 1 사용 예제들

공개 메소드들

메소드 설명
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