/Source/ResourceManagement.Client/WsTransfer/BaseObjectSearchRequest.cs
C# | 32 lines | 27 code | 5 blank | 0 comment | 2 complexity | 542520f6b37fd2ddbc1a0ae4a929118a MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Xml.Serialization;
- using System.Text;
-
- namespace Microsoft.ResourceManagement.Client.WsTransfer
- {
- [XmlRoot(Namespace=Constants.Imda.Namespace)]
- public class BaseObjectSearchRequest
- {
- public BaseObjectSearchRequest()
- : this(new String[0] { })
- {
-
- }
-
- public BaseObjectSearchRequest(String[] attributeNames)
- {
- if (attributeNames == null)
- throw new ArgumentNullException("attributeNames");
- this.AttributeTypes = new List<string>();
- this.AttributeTypes.AddRange(attributeNames);
- this.Dialect = Constants.Dialect.IdmAttributeType;
- }
-
- [XmlAttribute(AttributeName = Constants.Imda.Dialect)]
- public String Dialect;
-
- [XmlElement(ElementName="AttributeType")]
- public List<String> AttributeTypes;
- }
- }