Class CommentsResource
The "comments" collection of methods.
Inherited Members
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 |
---|---|---|
string | fileId | The ID of the file. |
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 |
---|---|---|
string | fileId | The ID of the file. |
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. |
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 |
---|---|---|
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. |
string | fileId | The ID of the file. |
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. |
string | fileId | The ID of the file. |
string | commentId | The ID of the comment. |
Returns
Type | Description |
---|---|
CommentsResource.UpdateRequest |