MagicCMS Documentation

MagicPost..::..GetByType Method (Int32, String)

Gets a collection of MagicPost filtered by type.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public static MagicPostCollection GetByType(
	int tipo,
	string ordine
)

Parameters

tipo
Type: Int32
The post type.
ordine
Type: String
Order in which the posts are sorted.

Return Value

Fetched post collection

Remarks


This method is useful to make a rapid query filtered by a single post type. .