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