Smartsheet.Api.Internal.SheetRowResourcesImpl.GetRow C# (CSharp) Method

GetRow() public method

Gets the Row specified in the URL.

It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}

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 GetRow ( long sheetId, long rowId, IEnumerable include, IEnumerable exclude ) : Row
sheetId long the sheetId
rowId long the rowId
include IEnumerable comma-separated list of elements to include in the response.
exclude IEnumerable a comma-separated list of optional objects to exclude in the response.
return Row
        public virtual Row GetRow(long sheetId, long rowId, IEnumerable<RowInclusion> include, IEnumerable<RowExclusion> exclude)
        {
            return this.GetResource<Row>("sheets/" + sheetId + "/rows/" + rowId, typeof(Row));
        }

Usage Example

Example #1
0
        public virtual void TestGetRow()
        {
            server.setResponseBody("../../../TestSDK/resources/getRow.json");

            Row row = sheetRowResource.GetRow(1234L, 1);

            Assert.NotNull(row);
            Assert.True(1 == row.RowNumber, "Wrong row retrieved.");
        }
All Usage Examples Of Smartsheet.Api.Internal.SheetRowResourcesImpl::GetRow