Show / Hide Table of Contents

Class Comment

A comment on a file in Google Drive. Some resource methods (such as comments.update) require a commentId. Use the comments.list method to retrieve the ID for a comment in a file.

Inheritance
object
Comment
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Drive.v2.Data
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class Comment : IDirectResponseSchema

Properties

Anchor

A region of the document represented as a JSON string. For details on defining anchor properties, refer to Add comments and replies.

Declaration
[JsonProperty("anchor")]
public virtual string Anchor { get; set; }
Property Value
Type Description
string

Author

Output only. The author of the comment. The author's email address and permission ID will not be populated.

Declaration
[JsonProperty("author")]
public virtual User Author { get; set; }
Property Value
Type Description
User

CommentId

Output only. The ID of the comment.

Declaration
[JsonProperty("commentId")]
public virtual string CommentId { get; set; }
Property Value
Type Description
string

Content

The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.

Declaration
[JsonProperty("content")]
public virtual string Content { get; set; }
Property Value
Type Description
string

Context

The context of the file which is being commented on.

Declaration
[JsonProperty("context")]
public virtual Comment.ContextData Context { get; set; }
Property Value
Type Description
Comment.ContextData

CreatedDate

DateTime representation of CreatedDateRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreatedDateDateTimeOffset instead.")]
public virtual DateTime? CreatedDate { get; set; }
Property Value
Type Description
DateTime?

CreatedDateDateTimeOffset

DateTimeOffset representation of CreatedDateRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreatedDateDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

CreatedDateRaw

The date when this comment was first created.

Declaration
[JsonProperty("createdDate")]
public virtual string CreatedDateRaw { get; set; }
Property Value
Type Description
string

Deleted

Output only. Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.

Declaration
[JsonProperty("deleted")]
public virtual bool? Deleted { get; set; }
Property Value
Type Description
bool?

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

FileId

Output only. The file which this comment is addressing.

Declaration
[JsonProperty("fileId")]
public virtual string FileId { get; set; }
Property Value
Type Description
string

FileTitle

Output only. The title of the file which this comment is addressing.

Declaration
[JsonProperty("fileTitle")]
public virtual string FileTitle { get; set; }
Property Value
Type Description
string

HtmlContent

Output only. HTML formatted content for this comment.

Declaration
[JsonProperty("htmlContent")]
public virtual string HtmlContent { get; set; }
Property Value
Type Description
string

Kind

Output only. This is always drive#comment.

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
string

ModifiedDate

DateTime representation of ModifiedDateRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use ModifiedDateDateTimeOffset instead.")]
public virtual DateTime? ModifiedDate { get; set; }
Property Value
Type Description
DateTime?

ModifiedDateDateTimeOffset

DateTimeOffset representation of ModifiedDateRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? ModifiedDateDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

ModifiedDateRaw

The date when this comment or any of its replies were last modified.

Declaration
[JsonProperty("modifiedDate")]
public virtual string ModifiedDateRaw { get; set; }
Property Value
Type Description
string

Replies

Output only. Replies to this post.

Declaration
[JsonProperty("replies")]
public virtual IList<CommentReply> Replies { get; set; }
Property Value
Type Description
IList<CommentReply>

SelfLink

Output only. A link back to this comment.

Declaration
[JsonProperty("selfLink")]
public virtual string SelfLink { get; set; }
Property Value
Type Description
string

Status

Output only. The status of this comment. Status can be changed by posting a reply to a comment with the desired status. * open - The comment is still open. * resolved - The comment has been resolved by one of its replies.

Declaration
[JsonProperty("status")]
public virtual string Status { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX