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.v3
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class CommentsResource

Constructors

CommentsResource(IClientService)

Constructs a new resource.

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

Methods

Create(Comment, String)

Creates a new comment on a file.

Declaration
public virtual CommentsResource.CreateRequest Create(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.CreateRequest

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

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

Update(Comment, String, String)

Updates a comment with patch semantics.

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
Back to top