A post is an entry on the blog - a blog post.
Namespace: BlogEngine.Core
Assembly: BlogEngine.Core (in BlogEngine.Core.dll)
Version: 1.2.0.0
Syntax
| C# | Visual Basic | Visual C++ |
[SerializableAttribute] public class Post : BusinessBase<Post, Guid>, IComparable<Post>, IPublishable
<SerializableAttribute> _ Public Class Post _ Inherits BusinessBase(Of Post, Guid) _ Implements IComparable(Of Post), IPublishable
[SerializableAttribute] public ref class Post : public BusinessBase<Post^, Guid>, IComparable<Post^>, IPublishable
Members
| All Members | Constructors | Properties | Methods | Events |
| Member | Description | |
|---|---|---|
| PostPostNew()() |
The default contstructor assign default values.
| |
| AbsoluteLink |
The absolute link to the post.
| |
| AddComment(Comment) |
Adds a comment to the collection and saves the post.
| |
| AddingComment |
Occurs before a new comment is added.
| |
| AddRule(String, String, Boolean) |
Add or remove a broken rule.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| ApproveAllComments()() |
Approves all the comments in a post. Included to save time on the approval process.
| |
| ApproveComment(Comment) |
Approves a Comment for publication.
| |
| ApprovedComments |
A collection of Approved comments for the post sorted by date.
| |
| Author |
Gets or sets the Author or the post.
| |
| Categories |
An unsorted List of categories.
| |
| CommentAdded |
Occurs when a comment is added.
| |
| CommentRemoved |
Occurs when a comment has been removed.
| |
| Comments |
A Collection of Approved Comments for the post
| |
| CompareTo(Post) |
Compares the current object with another object of the same type.
| |
| Content |
Gets or sets the Content or the post.
| |
| DataDelete()() |
Deletes the Post from the current BlogProvider.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataDelete()().) | |
| DataInsert()() |
Inserts a new post to the current BlogProvider.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataInsert()().) | |
| DataSelect(Guid) |
Returns a Post based on the specified id.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataSelect(KEY).) | |
| DataUpdate()() |
Updates the Post.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataUpdate()().) | |
| DateCreated |
The date on which the instance was created.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| DateModified |
The date on which the instance was modified.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Delete()() |
Marks the object for deletion. It will then be
deleted when the object's Save() method is called.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Description |
Gets or sets the Description or the post.
| |
| DirtyProperties |
A collection of the properties that have
been marked as being dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Dispose(Boolean) |
Disposes the object and frees ressources for the Garbage Collector.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Equals(Object) |
Comapares this object with another
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Finalize()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()() |
A uniquely key to identify this particullar instance of the class
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| GetPost(Guid) |
Returs a post based on the specified id.
| |
| GetPostBySlug(String, DateTime) |
Returns a post based on it's title.
| |
| GetPostsByAuthor(String) |
Returns all posts written by the specified author.
| |
| GetPostsByCategory(Guid) |
Returns all posts in the specified category
| |
| GetPostsByDate(DateTime, DateTime) |
Returns all posts published between the two dates.
| |
| GetPostsByTag(String) |
Returns all posts tagged with the specified tag.
| |
| GetType()() | Gets the Type of the current instance. (Inherited from Object.) | |
| Id |
Gets the unique Identification of the object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsCategoriesChanged |
Gets or sets to check if the List has changed.
| |
| IsCommentsEnabled |
Gets or sets the EnableComments or the object.
| |
| IsDeleted |
Gets if this object is marked for deletion.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsDirty |
Gets if the Post have been changed.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::IsDirty.) | |
| IsDisposed |
Gets or sets if the object has been disposed.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
| |
| IsNew |
Gets if this is a new object, False if it is a pre-existing object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsPropertyDirty(String) |
Check whether or not the specified property has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsPropertyDirty(array<String>[]()) |
Check whether or not the specified properties has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsPublished |
Gets or sets the IsPublished or the object.
| |
| IsTitleUnique(String) |
Checks to see if the specified title has already been used
by another post.
| |
| IsValid |
Gets whether the object is valid or not.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| IsVisible |
Gets whether or not the post is visible or not.
| |
| MarkDirty(String) |
Marks an object as being dirty, or changed.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| MarkedDirty |
Occurs when this instance is marked dirty.
It means the instance has been changed but not saved.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| MarkOld()() |
Marks the object as being an clean,
which means not dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| MemberwiseClone()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Next |
Gets the next post relative to this one based on time.
| |
| NotApprovedComments |
A collection of comments waiting for approval for the post, sorted by date.
| |
| NotificationEmails |
Gets a collection of email addresses that is signed up for
comment notification on the specific post.
| |
| OnAddingComment(Comment) |
Raises the event in a safe way
| |
| OnCommentAdded(Comment) |
Raises the event in a safe way
| |
| OnCommentRemoved(Comment) |
Raises the event in a safe way
| |
| OnMarkedDirty()() |
Raises the MarkedDirty event safely.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| OnRated(Post) |
Raises the event in a safe way
| |
| OnRemovingComment(Comment) |
Raises the event in a safe way
| |
| OnServing(ServingEventArgs) |
Raises the Serving event
| |
| OnServing(Post, ServingEventArgs) |
Raises the event in a safe way
| |
| PermaLink |
The absolute permanent link to the post.
| |
| Posts |
A sorted collection of all posts in the blog.
Sorted by date.
| |
| Previous |
Gets the previous post relative to this one based on time.
| |
| Rate(Int32) |
Adds a rating to the post.
| |
| Rated |
Occurs when a visitor rates the post.
| |
| Raters |
Gets or sets the number of raters or the object.
| |
| Rating |
Gets or sets the rating or the post.
| |
| RelativeLink |
A relative-to-the-site-root path to the post.
Only for in-site use.
| |
| RemoveComment(Comment) |
Removes a comment from the collection and saves the post.
| |
| RemovingComment |
Occurs before comment is removed.
| |
| Save()() |
Saves the object to the database.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| Serving |
Occurs when the post is being served to the output stream.
| |
| Slug |
Gets or sets the Slug of the Post.
A Slug is the relative URL used by the posts.
| |
| Tags |
An unsorted collection of tags.
| |
| Title |
Gets or sets the Title or the post.
| |
| ToString()() | (Overrides Object..::ToString()().) | |
| TrackbackLink |
The trackback link to the post.
| |
| ValidationMessage |
If the object has broken business rules, use this property to get access
to the different validation messages.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.) | |
| ValidationRules()() |
Validates the Post instance.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::ValidationRules()().) |
Inheritance Hierarchy
See Also
BlogEngine.Core Namespace