The Comments type exposes the following members.

Constructors

  Name Description
Public method Comments
Constructor.

Methods

  Name Description
Public method ApplyChanges
Apply web part property changes (Note: Overridden property still needs to be marked as WebPartApplyChangesAttribute).

Note: Marked with WebPartApplyChangesAttribute attribute so it is called from ApplyChanges event in the editor part to refresh the module appearance.

(Overrides BasePart..::..ApplyChanges()()()().)
Public method BindData
Binds and formats comment data for display in the main list view control.
Protected method btnSave_Click
Public method DeleteComment
Performs a delete action on specified comment id.
Public method LoadPostData
Used to implement link button event handling capabilities in late bound scenarios.
Protected method lvItems_OnItemDataBound
Protected method OnDeleted
Raises deleted event.
Protected method OnDeleting
Raises deleting event.
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Protected method OnSaved
Raises saved event.
Protected method OnSaving
Raises saving event.
Protected method ParseTemplateTags
Formats the comment data for display using the template.
Public method RaisePostBackEvent
Public method RaisePostDataChangedEvent
Methid is used only if you need to perform event raising capabilities for the Web part.
Public method SaveComment
Save comment.
Protected method SendMailNotification
Send mail notification to users when a comment is posted.
Public method SetRelationshipData

Extension Methods

  Name Description
Public Extension Method ConvertTo(Type) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo(Type, TypeConverter, Boolean) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)()()()() Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method ConvertTo<(Of <<'(T>)>>)(TypeConverter) Overloaded.
Converts a source to the given type.
(Defined by ObjectExtension.)
Public Extension Method GetCurrentStackTrace
Gets current stack trace information.
(Defined by ObjectExtension.)
Public Extension Method GetDebugInformation
Gets the debug information for currently executing code.
(Defined by ObjectExtension.)
Public Extension Method GetExecutingMethodName
Gets the executing method name.
(Defined by ObjectExtension.)
Public Extension Method GetPagerTemplate
Gets pager template.
(Defined by ControlExtension.)
Public Extension Method GetPropertyType
Gets a property type.
(Defined by ObjectExtension.)
Public Extension Method GetPropertyValue
Gets a property or field value from the object (Dot notation enabled).
(Defined by ObjectExtension.)
Public Extension Method PropertyExists
Check if property exists.
(Defined by ObjectExtension.)
Public Extension Method SetPropertyValue
Sets a property or field value to the object (Dot notation enabled).
(Defined by ObjectExtension.)

Fields

  Name Description
Protected field btnSave
btnSave control.
Public field Static member DeleteCommandName
Protected field lvItems
lvItems control.
Protected field pager
pager control.
Protected field pnlCommentBox
pnlCommentBox control.
Protected field pnlContainer
pnlContainer control.
Protected field reqInput
reqInput control.
Protected field scriptManagerProxy
scriptManagerProxy control.
Protected field txtInput
txtInput control.
Protected field validationHandler
validationHandler control.

Properties

  Name Description
Public property BlogPostSubscriptionLocalization
Gets the Blog post subscription localization.

Note: Used to perform programatic localization of subscription strings.

Public property CommentTextBoxVisibleOnInit
Indicates if comment text box is visible on control init.
Public property DateFormatString
Date format string.
Public property EnablePrettyDateFormat
Gets or sets if pretty date format is enabled.

Note: Example of pretty date format '2 days ago'.

Public property EnableSubscription
Sends notifications on non-spam comments to the blog author.
Public property GravatarRenderType
Type of the avatar to be rendered - if not set, the web.config settings are used.
Public property MaxContentChars
Maximum number of characters in the content of the comment. If set to zero, content is not limited.
Public property Pager
Pager control
Public property PageSize
Pager page size.
Public property PagingEnabled
Indicates if paging is enabled in the comments module
Public property ParentEntityId
ID of the parent entity (wall note, picture, etc.) for which to show comments
Public property ParentEntityType
Enum that describes the parent entity type (note, file, album, custom, etc.)
Public property TemplatedControl
Templated list view that is used for rendering the "repeatable" section of this control.
Public property UserProfileUrl
URL of the user profile page. If empty, a postback is performed to the same page.
Public property UserReputationNewCommentScore
Gets or sets how much score user gets for new comment submission.
Public property WallSubscriptionLocalization
Gets the WallNote subscription localization.

Note: Used to perform programatic localization of subscription strings.

Events

  Name Description
Public event Deleted
Deleted event, occures after delete action is preformed.
Public event Deleting
Deleting event, occures just before delete action is preformed.
Public event Saved
Saved event, occures after save action is preformed.
Public event Saving
Saving event, occures just before save action is preformed.

See Also