Show / Hide Table of Contents

Class Comment

A comment on a file. 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.v3.Data
Assembly: Google.Apis.Drive.v3.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 Manage 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

Content

The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed.

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

CreatedTime

DateTime representation of CreatedTimeRaw.

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

CreatedTimeDateTimeOffset

DateTimeOffset representation of CreatedTimeRaw.

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

CreatedTimeRaw

The time at which the comment was created (RFC 3339 date-time).

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

Deleted

Output only. Whether the comment has been deleted. A deleted comment has no content.

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

HtmlContent

Output only. The content of the comment with HTML formatting.

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

Id

Output only. The ID of the comment.

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

Kind

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#comment".

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

ModifiedTime

DateTime representation of ModifiedTimeRaw.

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

ModifiedTimeDateTimeOffset

DateTimeOffset representation of ModifiedTimeRaw.

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

ModifiedTimeRaw

The last time the comment or any of its replies was modified (RFC 3339 date-time).

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

QuotedFileContent

The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.

Declaration
[JsonProperty("quotedFileContent")]
public virtual Comment.QuotedFileContentData QuotedFileContent { get; set; }
Property Value
Type Description
Comment.QuotedFileContentData

Replies

Output only. The full list of replies to the comment in chronological order.

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

Resolved

Output only. Whether the comment has been resolved by one of its replies.

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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX