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 Public method  Properties Public property  Methods Public method  Events Public event 
 Public

 Protected
 Instance

 Static Static member
 Declared

 Inherited
 XNA Framework Only Supported by the XNA Framework

 .NET Compact Framework Only Supported by the .NET Compact Framework

 MemberDescription
Public methodPostPostNew()()
The default contstructor assign default values.
Public propertyAbsoluteLink
The absolute link to the post.
Public methodAddComment(Comment)
Adds a comment to the collection and saves the post.
Public eventStatic memberAddingComment
Occurs before a new comment is added.
Protected methodAddRule(String, String, Boolean)
Add or remove a broken rule.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodApproveAllComments()()
Approves all the comments in a post. Included to save time on the approval process.
Public methodApproveComment(Comment)
Approves a Comment for publication.
Public propertyApprovedComments
A collection of Approved comments for the post sorted by date.
Public propertyAuthor
Gets or sets the Author or the post.
Public propertyCategories
An unsorted List of categories.
Public eventStatic memberCommentAdded
Occurs when a comment is added.
Public eventStatic memberCommentRemoved
Occurs when a comment has been removed.
Public propertyComments
A Collection of Approved Comments for the post
Public methodCompareTo(Post)
Compares the current object with another object of the same type.
Public propertyContent
Gets or sets the Content or the post.
Protected methodDataDelete()()
Deletes the Post from the current BlogProvider.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataDelete()().)
Protected methodDataInsert()()
Inserts a new post to the current BlogProvider.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataInsert()().)
Protected methodDataSelect(Guid)
Returns a Post based on the specified id.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataSelect(KEY).)
Protected methodDataUpdate()()
Updates the Post.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::DataUpdate()().)
Public propertyDateCreated
The date on which the instance was created.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyDateModified
The date on which the instance was modified.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodDelete()()
Marks the object for deletion. It will then be deleted when the object's Save() method is called.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyDescription
Gets or sets the Description or the post.
Protected propertyDirtyProperties
A collection of the properties that have been marked as being dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodDispose(Boolean)
Disposes the object and frees ressources for the Garbage Collector.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodEquals(Object)
Comapares this object with another
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodFinalize()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode()()
A uniquely key to identify this particullar instance of the class
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodStatic memberGetPost(Guid)
Returs a post based on the specified id.
Public methodStatic memberGetPostBySlug(String, DateTime)
Returns a post based on it's title.
Public methodStatic memberGetPostsByAuthor(String)
Returns all posts written by the specified author.
Public methodStatic memberGetPostsByCategory(Guid)
Returns all posts in the specified category
Public methodStatic memberGetPostsByDate(DateTime, DateTime)
Returns all posts published between the two dates.
Public methodStatic memberGetPostsByTag(String)
Returns all posts tagged with the specified tag.
Public methodGetType()()
Gets the Type of the current instance.
(Inherited from Object.)
Public propertyId
Gets the unique Identification of the object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsCategoriesChanged
Gets or sets to check if the List has changed.
Public propertyIsCommentsEnabled
Gets or sets the EnableComments or the object.
Public propertyIsDeleted
Gets if this object is marked for deletion.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsDirty
Gets if the Post have been changed.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::IsDirty.)
Protected propertyIsDisposed
Gets or sets if the object has been disposed.

Remarks

If the objects is disposed, it must not be disposed a second time. The IsDisposed property is set the first time the object is disposed. If the IsDisposed property is true, then the Dispose() method will not dispose again. This help not to prolong the object's life if the Garbage Collector.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsNew
Gets if this is a new object, False if it is a pre-existing object.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodIsPropertyDirty(String)
Check whether or not the specified property has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodIsPropertyDirty(array<String>[]())
Check whether or not the specified properties has been changed
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsPublished
Gets or sets the IsPublished or the object.
Public methodStatic memberIsTitleUnique(String)
Checks to see if the specified title has already been used by another post.

Remarks

Titles must be unique because the title is part of the URL.
Public propertyIsValid
Gets whether the object is valid or not.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public propertyIsVisible
Gets whether or not the post is visible or not.
Protected methodMarkDirty(String)
Marks an object as being dirty, or changed.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public eventMarkedDirty
Occurs when this instance is marked dirty. It means the instance has been changed but not saved.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public methodMarkOld()()
Marks the object as being an clean, which means not dirty.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodMemberwiseClone()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public propertyNext
Gets the next post relative to this one based on time.

Remarks

If this post is the newest, then it returns null.
Public propertyNotApprovedComments
A collection of comments waiting for approval for the post, sorted by date.
Public propertyNotificationEmails
Gets a collection of email addresses that is signed up for comment notification on the specific post.
Protected methodOnAddingComment(Comment)
Raises the event in a safe way
Protected methodOnCommentAdded(Comment)
Raises the event in a safe way
Protected methodOnCommentRemoved(Comment)
Raises the event in a safe way
Protected methodOnMarkedDirty()()
Raises the MarkedDirty event safely.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodOnRated(Post)
Raises the event in a safe way
Protected methodOnRemovingComment(Comment)
Raises the event in a safe way
Public methodOnServing(ServingEventArgs)
Raises the Serving event
Public methodStatic memberOnServing(Post, ServingEventArgs)
Raises the event in a safe way
Public propertyPermaLink
The absolute permanent link to the post.
Public propertyStatic memberPosts
A sorted collection of all posts in the blog. Sorted by date.
Public propertyPrevious
Gets the previous post relative to this one based on time.

Remarks

If this post is the oldest, then it returns null.
Public methodRate(Int32)
Adds a rating to the post.
Public eventStatic memberRated
Occurs when a visitor rates the post.
Public propertyRaters
Gets or sets the number of raters or the object.
Public propertyRating
Gets or sets the rating or the post.
Public propertyRelativeLink
A relative-to-the-site-root path to the post. Only for in-site use.
Public methodRemoveComment(Comment)
Removes a comment from the collection and saves the post.
Public eventStatic memberRemovingComment
Occurs before comment is removed.
Public methodSave()()
Saves the object to the database.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Public eventStatic memberServing
Occurs when the post is being served to the output stream.
Public propertySlug
Gets or sets the Slug of the Post. A Slug is the relative URL used by the posts.
Public propertyTags
An unsorted collection of tags.
Public propertyTitle
Gets or sets the Title or the post.
Public methodToString()()
Returns a String that represents the current Object.
(Overrides Object..::ToString()().)
Public propertyTrackbackLink
The trackback link to the post.
Public propertyValidationMessage
If the object has broken business rules, use this property to get access to the different validation messages.
(Inherited from BusinessBase<(Of <TYPE, KEY>)>.)
Protected methodValidationRules()()
Validates the Post instance.
(Overrides BusinessBase<(Of <TYPE, KEY>)>..::ValidationRules()().)

Inheritance Hierarchy

System..::Object
  BlogEngine.Core..::BusinessBase<(Of <Post, Guid>)>
    BlogEngine.Core..::Post

See Also

BlogEngine.Core Namespace