コード例 #1
0
ファイル: AllowedZonesAttribute.cs プロジェクト: Biswo/n2cms
 /// <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];
 }
コード例 #2
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];
     }
 }
コード例 #3
0
 public static Builder <AllowedZonesAttribute> AllowedZones(this IContentRegistration registration, AllowedZones allowedIn, params string[] zoneNames)
 {
     return(registration.RegisterRefiner(new AllowedZonesAttribute(allowedIn)
     {
         ZoneNames = zoneNames
     }));
 }
コード例 #4
0
		public static Builder<AllowedZonesAttribute> AllowedZones(this IContentRegistration registration, AllowedZones allowedIn, params string[] zoneNames)
		{
			return registration.RegisterRefiner(new AllowedZonesAttribute(allowedIn) { ZoneNames = zoneNames });
		}