Show / Hide Table of Contents

Class FormsResource.CreateRequest

Create a new form using the title given in the provided form message in the request. Important: Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Form>
FormsBaseServiceRequest<Form>
FormsResource.CreateRequest
Implements
IClientServiceRequest<Form>
IClientServiceRequest
Inherited Members
FormsBaseServiceRequest<Form>.Xgafv
FormsBaseServiceRequest<Form>.AccessToken
FormsBaseServiceRequest<Form>.Alt
FormsBaseServiceRequest<Form>.Callback
FormsBaseServiceRequest<Form>.Fields
FormsBaseServiceRequest<Form>.Key
FormsBaseServiceRequest<Form>.OauthToken
FormsBaseServiceRequest<Form>.PrettyPrint
FormsBaseServiceRequest<Form>.QuotaUser
FormsBaseServiceRequest<Form>.UploadType
FormsBaseServiceRequest<Form>.UploadProtocol
ClientServiceRequest<Form>.Execute()
ClientServiceRequest<Form>.ExecuteAsStream()
ClientServiceRequest<Form>.ExecuteAsync()
ClientServiceRequest<Form>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Form>.ExecuteAsStreamAsync()
ClientServiceRequest<Form>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Form>.CreateRequest(bool?)
ClientServiceRequest<Form>.GenerateRequestUri()
ClientServiceRequest<Form>.GetDefaultETagAction(string)
ClientServiceRequest<Form>.ETagAction
ClientServiceRequest<Form>.ModifyRequest
ClientServiceRequest<Form>.ValidateParameters
ClientServiceRequest<Form>.ApiVersion
ClientServiceRequest<Form>.RequestParameters
ClientServiceRequest<Form>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Forms.v1
Assembly: Google.Apis.Forms.v1.dll
Syntax
public class FormsResource.CreateRequest : FormsBaseServiceRequest<Form>, IClientServiceRequest<Form>, IClientServiceRequest

Constructors

CreateRequest(IClientService, Form)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, Form body)
Parameters
Type Name Description
IClientService service
Form body

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Form>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Form>.MethodName

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Form>.RestPath

Unpublished

Optional. Whether the form is unpublished. If set to true, the form doesn't accept responses. If set to false or unset, the form is published and accepts responses.

Declaration
[RequestParameter("unpublished", RequestParameterType.Query)]
public virtual bool? Unpublished { get; set; }
Property Value
Type Description
bool?

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Form>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
FormsBaseServiceRequest<Form>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX