Class SpreadsheetsResource.GetRequest
Returns the spreadsheet at the given ID. The caller must specify the spreadsheet ID. By default, data within
grids is not returned. You can include grid data in one of 2 ways: * Specify a field mask listing your
desired fields using the fields URL parameter in HTTP * Set the includeGridData URL parameter to true. If
a field mask is set, the includeGridData parameter is ignored For large spreadsheets, as a best practice,
retrieve only the specific spreadsheet fields that you want. To retrieve only subsets of spreadsheet data,
use the ranges URL parameter. Ranges are specified using A1 notation.
You can define a single cell (for example, A1) or multiple cells (for example, A1:D5). You can also get
cells from other sheets within the same spreadsheet (for example, Sheet2!A1:C4) or retrieve multiple
ranges at once (for example, ?ranges=A1:D5&ranges=Sheet2!A1:C4). Limiting the range returns only
the portions of the spreadsheet that intersect the requested ranges.
Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
SpreadsheetsResource.GetRequest
Implements
Google.Apis.Requests.IClientServiceRequest<
Spreadsheet>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.GetBody()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.Service
Google.Apis.Requests.ClientServiceRequest._unsuccessfulResponseHandlers
Google.Apis.Requests.ClientServiceRequest._exceptionHandlers
Google.Apis.Requests.ClientServiceRequest._executeInterceptors
Google.Apis.Requests.ClientServiceRequest.AddUnsuccessfulResponseHandler(Google.Apis.Http.IHttpUnsuccessfulResponseHandler)
Google.Apis.Requests.ClientServiceRequest.AddExceptionHandler(Google.Apis.Http.IHttpExceptionHandler)
Google.Apis.Requests.ClientServiceRequest.AddExecuteInterceptor(Google.Apis.Http.IHttpExecuteInterceptor)
Google.Apis.Requests.ClientServiceRequest.Credential
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class GetRequest : SheetsBaseServiceRequest<Spreadsheet>, IClientServiceRequest<Spreadsheet>, IClientServiceRequest
Constructors
GetRequest(IClientService, String)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string spreadsheetId)
Parameters
| Type |
Name |
Description |
| Google.Apis.Services.IClientService |
service |
|
| System.String |
spreadsheetId |
|
Properties
HttpMethod
Declaration
public override string HttpMethod { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.HttpMethod
IncludeGridData
True if grid data should be returned. This parameter is ignored if a field mask was set in the request.
Declaration
[RequestParameter("includeGridData", RequestParameterType.Query)]
public virtual bool? IncludeGridData { get; set; }
Property Value
| Type |
Description |
| System.Nullable<System.Boolean> |
|
MethodName
Declaration
public override string MethodName { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.MethodName
Ranges
The ranges to retrieve from the spreadsheet.
Declaration
[RequestParameter("ranges", RequestParameterType.Query)]
public virtual Repeatable<string> Ranges { get; set; }
Property Value
| Type |
Description |
| Google.Apis.Util.Repeatable<System.String> |
|
RestPath
Declaration
public override string RestPath { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.RestPath
SpreadsheetId
The spreadsheet to request.
Declaration
[RequestParameter("spreadsheetId", RequestParameterType.Path)]
public virtual string SpreadsheetId { get; }
Property Value
| Type |
Description |
| System.String |
|
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.Sheets.v4.SheetsBaseServiceRequest<Google.Apis.Sheets.v4.Data.Spreadsheet>.InitParameters()
Implements
Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest