Interfaces

Project

Pages Html

NuGet packageOwin.Framework.Pages.Html
GitHub sourceOwinFramework.Pages.Html

Home |  Readme

[IsRegion] attribute | The OWIN Framework Pages

The [IsRegion] Attribute

Attach this attribute to a class to identify it as a region.

Example Usage

[IsRegion("addres_list")]
[Repeat(typeof(Person))]
[NeedsData("person_address")]
internal class AddressListRegion
{ }

The [IsRegion()] attribute has the following properties you can set.

Name

If you want to refer to your region by name in other page elements, then you need to provide a unique name here. The name will be scoped by the package it is in, so the name only has to be unique within the package.

If you want to refer to this region by name from a page element that is in a different package, then you need to prefix the region name with the package prefix and a colon, for example "regions:address_region"