Show / Hide Table of Contents

Class SpreadsheetsResource.SheetsResource.CopyToRequest

Copies a single sheet from a spreadsheet to another spreadsheet. Returns the properties of the newly created sheet.

Inheritance
System.Object
Google.Apis.Requests.ClientServiceRequest
Google.Apis.Requests.ClientServiceRequest<SheetProperties>
SheetsBaseServiceRequest<SheetProperties>
SpreadsheetsResource.SheetsResource.CopyToRequest
Implements
Google.Apis.Requests.IClientServiceRequest<SheetProperties>
Google.Apis.Requests.IClientServiceRequest
Inherited Members
SheetsBaseServiceRequest<SheetProperties>.Xgafv
SheetsBaseServiceRequest<SheetProperties>.AccessToken
SheetsBaseServiceRequest<SheetProperties>.Alt
SheetsBaseServiceRequest<SheetProperties>.Callback
SheetsBaseServiceRequest<SheetProperties>.Fields
SheetsBaseServiceRequest<SheetProperties>.Key
SheetsBaseServiceRequest<SheetProperties>.OauthToken
SheetsBaseServiceRequest<SheetProperties>.PrettyPrint
SheetsBaseServiceRequest<SheetProperties>.QuotaUser
SheetsBaseServiceRequest<SheetProperties>.UploadType
SheetsBaseServiceRequest<SheetProperties>.UploadProtocol
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.Execute()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ExecuteAsStream()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ExecuteAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ExecuteAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ExecuteAsStreamAsync()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ExecuteAsStreamAsync(System.Threading.CancellationToken)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.CreateRequest(System.Nullable<System.Boolean>)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.GenerateRequestUri()
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.GetDefaultETagAction(System.String)
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ETagAction
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ModifyRequest
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.ValidateParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.RequestParameters
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.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()
Namespace: Google.Apis.Sheets.v4
Assembly: Google.Apis.Sheets.v4.dll
Syntax
public class CopyToRequest : SheetsBaseServiceRequest<SheetProperties>, IClientServiceRequest<SheetProperties>, IClientServiceRequest

Constructors

CopyToRequest(IClientService, CopySheetToAnotherSpreadsheetRequest, String, Int32)

Constructs a new CopyTo request.

Declaration
public CopyToRequest(IClientService service, CopySheetToAnotherSpreadsheetRequest body, string spreadsheetId, int sheetId)
Parameters
Type Name Description
Google.Apis.Services.IClientService service
CopySheetToAnotherSpreadsheetRequest body
System.String spreadsheetId
System.Int32 sheetId

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
System.String
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.RestPath

SheetId

The ID of the sheet to copy.

Declaration
[RequestParameter("sheetId", RequestParameterType.Path)]
public virtual int SheetId { get; }
Property Value
Type Description
System.Int32

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
System.String

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
System.Object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.GetBody()

InitParameters()

Initializes CopyTo parameter list.

Declaration
protected override void InitParameters()
Overrides
Google.Apis.Sheets.v4.SheetsBaseServiceRequest<Google.Apis.Sheets.v4.Data.SheetProperties>.InitParameters()

Implements

Google.Apis.Requests.IClientServiceRequest<TResponse>
Google.Apis.Requests.IClientServiceRequest
In This Article
Back to top