Class SpreadsheetsResource.SheetsResource.CopyToRequest
Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet.
Inheritance
SpreadsheetsResource.SheetsResource.CopyToRequest
Inherited Members
Namespace: Google.Apis.Sheets.v4
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class SpreadsheetsResource.SheetsResource.CopyToRequest : SheetsBaseServiceRequest<SheetProperties>, IClientServiceRequest<SheetProperties>, IClientServiceRequest
Constructors
CopyToRequest(IClientService, CopySheetToAnotherSpreadsheetRequest, string, int)
Constructs a new CopyTo request.
Declaration
public CopyToRequest(IClientService service, CopySheetToAnotherSpreadsheetRequest body, string spreadsheetId, int sheetId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CopySheetToAnotherSpreadsheetRequest | body | |
string | spreadsheetId | |
int | sheetId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SheetId
The ID of the sheet to copy.
Declaration
[RequestParameter("sheetId", RequestParameterType.Path)]
public virtual int SheetId { get; }
Property Value
Type | Description |
---|---|
int |
SpreadsheetId
The ID of the spreadsheet containing the sheet to copy.
Declaration
[RequestParameter("spreadsheetId", RequestParameterType.Path)]
public virtual string SpreadsheetId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes CopyTo parameter list.
Declaration
protected override void InitParameters()