The RelatedContent type exposes the following members.

Constructors

  Name Description
Public method RelatedContent
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 DataBind
Binds and formats related content for display in the main list view control.
(Overrides Control..::..DataBind()()()().)
Protected method lvItems_OnItemDataBound
Protected method OnInit (Overrides BasePart..::..OnInit(EventArgs).)
Protected method OnLoad (Overrides BasePart..::..OnLoad(EventArgs).)
Protected method OnPreRender (Overrides BasePart..::..OnPreRender(EventArgs).)
Protected method ParseTemplateTags
Parse the data for display using the template.
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 labTitle
labTitle control.
Protected field lvItems
lvItems control.
Protected field pager
pager control.
Protected field plhTitle
plhTitle control.
Protected field pnlContainer
pnlContainer control.
Protected field scriptManagerProxy
scriptManagerProxy control.

Properties

  Name Description
Public property BlogPostUrl
String that is used to format the URL for displaying a single blog post
Public property CssClass
Gets or sets the related content container CSS class.
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 MaxContentChars
Maximum number of characters in the content. If set to zero, content is not limited.
Public property NewsReadMorePageUrl
Gets or sets the news read more page url.
Public property Pager
Gets pager control.
Public property PageSize
Pager page size.
Public property PagingEnabled
Indicates if paging is enabled in the related content module.
Public property ParentEntityId
ID of the parent entity (wall note, picture, etc.) for which to show related content.
Public property ParentEntityType
Enum that describes the parent entity type (note, file, album, custom, etc.).
Public property PhotoListUrl
URL of the photo list page.
Public property PhotoListUrlPattern
URL pattern of the photo list page.
Public property RelatedContentTitle
Gets or sets the title of the module.
Public property RelatedContentTitleVisible
Gets or sets the title of the module.
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 ViewFilePageUrl
ID of the file view page that is used to display full size photos.

See Also