Get a page of posts in a topic

Namespace: SynergyServerScripting.Entities
Assembly: SynergyServerScripting (in SynergyServerScripting.dll)

Public Shared Function GetPosts( _ 
ByVal topic_id As EntityID, _ 
ByVal page As Integer, _ 
ByVal max_per_page As Integer, _ 
ByVal as_html As Boolean, _ 
ByVal db As IDatabase
) As List(Of ForumPost)
This language is not supported or no code example is available.
public static List<ForumPost> GetPosts( 
EntityID topic_id
int page
int max_per_page
bool as_html
IDatabase db 
)
This language is not supported or no code example is available.
public:  
static List<ForumPost^>^ GetPosts( 
EntityID^ topic_id
int page
int max_per_page
bool as_html
IDatabase^ db 
)
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Parameters

topic_id
Type: EntityID

the id of the topic

page
Type: int

the page number to retrieve

max_per_page
Type: int

the maximum number of posts per page

as_html
Type: bool

do we want to convert each post body to html?

db
Type: IDatabase

the db to use

Return Value

Type: List<ForumPost>

the list of posts

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1