The following sample code shows how you can get a banned IP as a BannedIPInfo object:
[C#]
using CMS.SiteProvider;
...
// Get BannedIP object by IPAddressID BannedIPInfo bi = BannedIPInfoProvider.GetBannedIPInfo(1); |
The following sample code shows how you can get a DataSet containing all banned IPs in the system with an IPAddressID greater than 5, ordered by their IPAddress:
[C#]
using System.Data; using CMS.SiteProvider;
...
// Get DataSet of BannedIP objects DataSet ds = BannedIPInfoProvider.GetBannedIPs("IPAddressID > 5", "IPAddress"); |
Page url: http://devnet.kentico.com/docs/devguide/index.html?getting_banned_ip_data.htm