/// <summary>Initializes a new instance of the AllowedZonesAttribute which is used to restrict which zones item may have.</summary> public AllowedZonesAttribute(AllowedZones allowedIn) { this.allowedIn = allowedIn; if (allowedIn == AllowedZones.All) zoneNames = null; else zoneNames = new string[0]; }
/// <summary>Initializes a new instance of the AllowedZonesAttribute which is used to restrict which zones item may have.</summary> public AllowedZonesAttribute(AllowedZones allowedIn) { this.allowedIn = allowedIn; if (allowedIn == AllowedZones.All) { zoneNames = null; } else { zoneNames = new string[0]; } }
public static Builder <AllowedZonesAttribute> AllowedZones(this IContentRegistration registration, AllowedZones allowedIn, params string[] zoneNames) { return(registration.RegisterRefiner(new AllowedZonesAttribute(allowedIn) { ZoneNames = zoneNames })); }
public static Builder<AllowedZonesAttribute> AllowedZones(this IContentRegistration registration, AllowedZones allowedIn, params string[] zoneNames) { return registration.RegisterRefiner(new AllowedZonesAttribute(allowedIn) { ZoneNames = zoneNames }); }