CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
DataPortalServerRoutingTagAttribute.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="DataPortalServerRoutingTagAttribute.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Specifies a routing tag for use by the server-side data portal.</summary>
7//-----------------------------------------------------------------------
8using System;
9
10namespace Csla
11{
15 [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
16 public class DataPortalServerRoutingTagAttribute : Attribute
17 {
18 private string _routingTag;
19
23 public string RoutingTag
24 {
25 get { return _routingTag; }
26 set
27 {
28 if (!string.IsNullOrWhiteSpace(value))
29 if (value.Contains("-") || value.Contains("/"))
30 throw new ArgumentException("valueRoutingToken");
31 _routingTag = value;
32 }
33 }
34
40 {
41 RoutingTag = tag;
42 }
43 }
44}
Specifies a routing tag for use by the server-side data portal.
DataPortalServerRoutingTagAttribute(string tag)
Creates an instance of this attribute.
string RoutingTag
Gets or sets the routing tag (can not contain '-').