/Source/ResourceManagement.Client/WsTransfer/BaseObjectSearchRequest.cs
C# | 32 lines | 27 code | 5 blank | 0 comment | 2 complexity | 542520f6b37fd2ddbc1a0ae4a929118a MD5 | raw file
1using System; 2using System.Collections.Generic; 3using System.Xml.Serialization; 4using System.Text; 5 6namespace Microsoft.ResourceManagement.Client.WsTransfer 7{ 8 [XmlRoot(Namespace=Constants.Imda.Namespace)] 9 public class BaseObjectSearchRequest 10 { 11 public BaseObjectSearchRequest() 12 : this(new String[0] { }) 13 { 14 15 } 16 17 public BaseObjectSearchRequest(String[] attributeNames) 18 { 19 if (attributeNames == null) 20 throw new ArgumentNullException("attributeNames"); 21 this.AttributeTypes = new List<string>(); 22 this.AttributeTypes.AddRange(attributeNames); 23 this.Dialect = Constants.Dialect.IdmAttributeType; 24 } 25 26 [XmlAttribute(AttributeName = Constants.Imda.Dialect)] 27 public String Dialect; 28 29 [XmlElement(ElementName="AttributeType")] 30 public List<String> AttributeTypes; 31 } 32}