Show / Hide Table of Contents

Class CommentsResource

The "comments" collection of methods.

Inheritance
System.Object
CommentsResource
Inherited Members
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.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class CommentsResource

Constructors

CommentsResource(IClientService)

Constructs a new resource.

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

Methods

Delete(String, String)

Deletes a comment.

Declaration
public virtual CommentsResource.DeleteRequest Delete(string fileId, string commentId)
Parameters
Type Name Description
System.String fileId

The ID of the file.

System.String commentId

The ID of the comment.

Returns
Type Description
CommentsResource.DeleteRequest

Get(String, String)

Gets a comment by ID.

Declaration
public virtual CommentsResource.GetRequest Get(string fileId, string commentId)
Parameters
Type Name Description
System.String fileId

The ID of the file.

System.String commentId

The ID of the comment.

Returns
Type Description
CommentsResource.GetRequest

Insert(Comment, String)

Creates a new comment on the given file.

Declaration
public virtual CommentsResource.InsertRequest Insert(Comment body, string fileId)
Parameters
Type Name Description
Comment body

The body of the request.

System.String fileId

The ID of the file.

Returns
Type Description
CommentsResource.InsertRequest

List(String)

Lists a file's comments.

Declaration
public virtual CommentsResource.ListRequest List(string fileId)
Parameters
Type Name Description
System.String fileId

The ID of the file.

Returns
Type Description
CommentsResource.ListRequest

Patch(Comment, String, String)

Updates an existing comment.

Declaration
public virtual CommentsResource.PatchRequest Patch(Comment body, string fileId, string commentId)
Parameters
Type Name Description
Comment body

The body of the request.

System.String fileId

The ID of the file.

System.String commentId

The ID of the comment.

Returns
Type Description
CommentsResource.PatchRequest

Update(Comment, String, String)

Updates an existing comment.

Declaration
public virtual CommentsResource.UpdateRequest Update(Comment body, string fileId, string commentId)
Parameters
Type Name Description
Comment body

The body of the request.

System.String fileId

The ID of the file.

System.String commentId

The ID of the comment.

Returns
Type Description
CommentsResource.UpdateRequest
In This Article
Back to top Generated by DocFX