MagicCMS Documentation

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

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
)

Parameters

tipo
Type: Int32
The post type.

Return Value

Fetched post collection

Remarks


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