PageRenderTime 15ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/ResourceManagement.Client/WsEnumeration/EnumerationFilter.cs

#
C# | 28 lines | 25 code | 3 blank | 0 comment | 1 complexity | 28d800cdd703758cd79c0b5206faecc4 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Xml.Serialization;
 4using System.Text;
 5
 6namespace Microsoft.ResourceManagement.Client.WsEnumeration
 7{
 8    [XmlRoot(Namespace=Constants.WsEnumeration.Namespace, ElementName=Constants.WsEnumeration.Filter)]
 9    public class EnumerationFilter
10    {
11        public EnumerationFilter() : this(String.Empty)
12        {
13
14        }
15        public EnumerationFilter(String filter)
16        {
17            if (String.IsNullOrEmpty(filter))
18                throw new ArgumentNullException("filter");
19            this.Filter = filter;
20            this.Dialect = Constants.Dialect.IdmXpathFilter;
21        }
22        [XmlText()]
23        public String Filter;
24
25        [XmlAttribute()]
26        public String Dialect;
27    }
28}