Show / Hide Table of Contents

Class FormsResource

The "forms" collection of methods.

Inheritance
object
FormsResource
Inherited Members
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

Constructors

FormsResource(IClientService)

Constructs a new resource.

Declaration
public FormsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Responses

Gets the Responses resource.

Declaration
public virtual FormsResource.ResponsesResource Responses { get; }
Property Value
Type Description
FormsResource.ResponsesResource

Watches

Gets the Watches resource.

Declaration
public virtual FormsResource.WatchesResource Watches { get; }
Property Value
Type Description
FormsResource.WatchesResource

Methods

BatchUpdate(BatchUpdateFormRequest, string)

Change the form with a batch of updates.

Declaration
public virtual FormsResource.BatchUpdateRequest BatchUpdate(BatchUpdateFormRequest body, string formId)
Parameters
Type Name Description
BatchUpdateFormRequest body

The body of the request.

string formId

Required. The form ID.

Returns
Type Description
FormsResource.BatchUpdateRequest

Create(Form)

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.

Declaration
public virtual FormsResource.CreateRequest Create(Form body)
Parameters
Type Name Description
Form body

The body of the request.

Returns
Type Description
FormsResource.CreateRequest

Get(string)

Get a form.

Declaration
public virtual FormsResource.GetRequest Get(string formId)
Parameters
Type Name Description
string formId

Required. The form ID.

Returns
Type Description
FormsResource.GetRequest

SetPublishSettings(SetPublishSettingsRequest, string)

Updates the publish settings of a form. Legacy forms aren't supported because they don't have the publish_settings field.

Declaration
public virtual FormsResource.SetPublishSettingsRequest SetPublishSettings(SetPublishSettingsRequest body, string formId)
Parameters
Type Name Description
SetPublishSettingsRequest body

The body of the request.

string formId

Required. The ID of the form. You can get the id from Form.form_id field.

Returns
Type Description
FormsResource.SetPublishSettingsRequest
In this article
Back to top Generated by DocFX