You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > Blog Class > Blog Methods > GetBlog Method > GetBlog
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Blog.GetBlog Method (String, String, Integer, Integer)

Returns a BlogData class for a given path, with parameters. This class contains the content for a blog, the post info, the roll, and the categories information. See the BlogData class for more information.

C#
public BlogData GetBlog(String path, String StartDate, int MaxEntries, int LanguageID);
Visual Basic
Public Function GetBlog(ByVal path As String, ByVal StartDate As String, ByVal MaxEntries As Integer, ByVal LanguageID As Integer) As BlogData
Parameters 
Description 
path 
The path of the blog. This is a string value that corresponds to the folder path of the blog. 
StartDate 
The date to start getting entries. Used if you want to get historical information. Gets information only for the date specified. 
MaxEntries 
The total number of posts to return. This is an integer value.
If set to 0, the postsvisible property of the blog is used.
If set to -1, the content is not returned, only the post info for the content. 
LanguageID 
The language ID for the content. An integer value. 

For a given path, this returns either null or a BlogData class with the associated posts. This also includes the roll, categories, and post information.

Developers are advised to check for null prior to using.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!