Table of Contents

Interface SheetCommentResources

Namespace
Smartsheet.Api
Assembly
smartsheet-csharp-sdk.dll

This interface provides methods to access Comment resources that are associated to a sheet object.

Thread Safety: Implementation of this interface must be thread safe.

public interface SheetCommentResources

Properties

AttachmentResources

Return the CommentAttachmentResources object that provides access to Attachment resources associated with Comment resources.

CommentAttachmentResources AttachmentResources { get; }

Property Value

CommentAttachmentResources

the Attachment resources

Methods

DeleteComment(long, long)

Deletes the Comment specified in the URL.

It mirrors to the following Smartsheet REST API method: DELETE /sheets/{sheetId}/comments/{commentId}

void DeleteComment(long sheetId, long commentId)

Parameters

sheetId long

the sheetId

commentId long

the commentId

Exceptions

InvalidOperationException

if any argument is null or empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation

GetComment(long, long)

Gets the Comment specified in the URL.

It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/comments/{commentId}

Comment GetComment(long sheetId, long commentId)

Parameters

sheetId long

the id of the sheet

commentId long

the id the of the comment

Returns

Comment

the comment object

Exceptions

InvalidOperationException

if any argument is null or empty string

InvalidRequestException

if there is any problem with the REST API request

AuthorizationException

if there is any problem with the REST API authorization (access token)

ResourceNotFoundException

if the resource cannot be found

ServiceUnavailableException

if the REST API service is not available (possibly due to rate limiting)

SmartsheetException

if there is any other error during the operation